diff options
author | Alex Ong <the.onga@gmail.com> | 2019-04-19 05:20:57 +1000 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-04-18 15:48:00 -0700 |
commit | bcb37d5f576fd7593b4e000b1bce741954957201 (patch) | |
tree | 84dde5e2bd8b9c1bec49514991bf071bc30ac92f /quantum/debounce | |
parent | f5e47ed1e5d06a7acfa01d225f267546bf521377 (diff) |
[core] Fix for eager_pr #5643
Added extra transfer_matrix_values() call whenever counters don't need updating
Diffstat (limited to 'quantum/debounce')
-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 5b460f6630..26b17ed295 100644 --- a/quantum/debounce/eager_pr.c +++ b/quantum/debounce/eager_pr.c @@ -48,11 +48,12 @@ void debounce_init(uint8_t num_rows) { void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) { uint8_t current_time = timer_read() % MAX_DEBOUNCE; + bool needed_update = counters_need_update; if (counters_need_update) { update_debounce_counters(num_rows, current_time); } - if (changed) { + if (changed || (needed_update && !counters_need_update)) { transfer_matrix_values(raw, cooked, num_rows, current_time); } } |