From 90d1b32f07567d658a03d05c7061da1381477fe3 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 23 Aug 2023 14:38:48 +0100 Subject: [PATCH] Fix infinite recursion in lxxt encoder logic (#21819) --- keyboards/lxxt/lxxt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/lxxt/lxxt.c b/keyboards/lxxt/lxxt.c index 0c4401c32b1..67c9085d92b 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