summaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorAlex Ong <the.onga@gmail.com>2019-04-18 21:20:57 +0200
committerDrashna Jaelre <drashna@live.com>2019-04-19 00:45:36 +0200
commit7a1086e4057a64f841ba178aa9eebb0002722ae2 (patch)
tree74a2d2d5f8d92145c32ede2932182df7d5366b0f /quantum
parent9e3b38425feedbe8d95c6cb738d713cc6e15af56 (diff)
downloadqmk_firmware-7a1086e4057a64f841ba178aa9eebb0002722ae2.tar.gz
qmk_firmware-7a1086e4057a64f841ba178aa9eebb0002722ae2.tar.xz
[core] Fix for eager_pr #5643
Added extra transfer_matrix_values() call whenever counters don't need updating
Diffstat (limited to 'quantum')
-rw-r--r--quantum/debounce/eager_pr.c3
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) {
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);
}
}