mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Fix infinite recursion in lxxt encoder logic (#21819)
This commit is contained in:
parent
b1fbfaaacc
commit
90d1b32f07
|
@ -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…
Reference in a new issue