diff options
| -rw-r--r-- | quantum/debounce/eager_pr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/debounce/eager_pr.c b/quantum/debounce/eager_pr.c index 5b460f663..26b17ed29 100644 --- a/quantum/debounce/eager_pr.c +++ b/quantum/debounce/eager_pr.c | |||
| @@ -48,11 +48,12 @@ void debounce_init(uint8_t num_rows) { | |||
| 48 | 48 | ||
| 49 | void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) { | 49 | void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) { |
| 50 | uint8_t current_time = timer_read() % MAX_DEBOUNCE; | 50 | uint8_t current_time = timer_read() % MAX_DEBOUNCE; |
| 51 | bool needed_update = counters_need_update; | ||
| 51 | if (counters_need_update) { | 52 | if (counters_need_update) { |
| 52 | update_debounce_counters(num_rows, current_time); | 53 | update_debounce_counters(num_rows, current_time); |
| 53 | } | 54 | } |
| 54 | 55 | ||
| 55 | if (changed) { | 56 | if (changed || (needed_update && !counters_need_update)) { |
| 56 | transfer_matrix_values(raw, cooked, num_rows, current_time); | 57 | transfer_matrix_values(raw, cooked, num_rows, current_time); |
| 57 | } | 58 | } |
| 58 | } | 59 | } |
