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 and Ardakilic committed Sep 10, 2024
1 parent c22fe52 commit 91de4d3
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 91de4d3

Please sign in to comment.