commit 90d1b32f07567d658a03d05c7061da1381477fe3
parent b1fbfaaacc61af1efe1b897aeed0dc7389d91708
Author: Joel Challis <git@zvecr.com>
Date: Wed, 23 Aug 2023 14:38:48 +0100
Fix infinite recursion in lxxt encoder logic (#21819)
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git 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