diff options
author | Joel Challis <git@zvecr.com> | 2023-08-23 14:38:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 23:38:48 +1000 |
commit | 90d1b32f07567d658a03d05c7061da1381477fe3 (patch) | |
tree | 7ea16cf2f5520a8962c82018ccedc16df54290e1 /keyboards | |
parent | b1fbfaaacc61af1efe1b897aeed0dc7389d91708 (diff) |
Fix infinite recursion in lxxt encoder logic (#21819)
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/lxxt/lxxt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/lxxt/lxxt.c b/keyboards/lxxt/lxxt.c index 0c4401c32b..67c9085d92 100644 --- a/keyboards/lxxt/lxxt.c +++ b/keyboards/lxxt/lxxt.c @@ -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 |