~ruther/qmk_firmware

90d1b32f07567d658a03d05c7061da1381477fe3 — Joel Challis 1 year, 11 months ago b1fbfaa
Fix infinite recursion in lxxt encoder logic (#21819)

1 files changed, 2 insertions(+), 2 deletions(-)

M keyboards/lxxt/lxxt.c
M keyboards/lxxt/lxxt.c => keyboards/lxxt/lxxt.c +2 -2
@@ 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
\ No newline at end of file
#endif