]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[core] Fix for eager_pr #5643
authorAlex Ong <the.onga@gmail.com>
Thu, 18 Apr 2019 19:20:57 +0000 (05:20 +1000)
committerDrashna Jaelre <drashna@live.com>
Thu, 18 Apr 2019 22:45:36 +0000 (15:45 -0700)
Added extra transfer_matrix_values() call whenever counters don't need updating

quantum/debounce/eager_pr.c

index 5b460f6630a620ee053e7bd37318cf9759fcbc97..26b17ed295fc467145ed4196344c9ae35b4b87b3 100644 (file)
@@ -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);
   }
 }