Skip to content

Commit

Permalink
Fix encoder breakage with 4 or more encoders (qmk#23595)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprof authored Apr 26, 2024
1 parent 2893038 commit 2224a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bool encoder_task(void) {
}

bool encoder_queue_full_advanced(encoder_events_t *events) {
return events->head == (events->tail - 1) % MAX_QUEUED_ENCODER_EVENTS;
return events->tail == (events->head + 1) % MAX_QUEUED_ENCODER_EVENTS;
}

bool encoder_queue_full(void) {
Expand Down

0 comments on commit 2224a76

Please sign in to comment.