Browse Source

Fix infinite recursion in lxxt encoder logic (#21819)

pull/21820/head
Joel Challis 8 months ago
committed by GitHub
parent
commit
90d1b32f07
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      keyboards/lxxt/lxxt.c

+ 2
- 2
keyboards/lxxt/lxxt.c View File

@ -20,7 +20,7 @@
#if defined(ENCODER_ENABLE)
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_kb(index, clockwise)) {
if (!encoder_update_user(index, clockwise)) {
return false; /* Don't process further events if user function exists and returns false */
}
if (index == 0) { /* First encoder */
@ -39,4 +39,4 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
return true;
}
#endif
#endif

Loading…
Cancel
Save