]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Bug fix - was using MATRIX_ROWS instead of num_rows
authorAlex Ong <the.onga@gmail.com>
Sat, 26 Jan 2019 11:45:25 +0000 (22:45 +1100)
committerAlex Ong <the.onga@gmail.com>
Sat, 26 Jan 2019 11:45:25 +0000 (22:45 +1100)
quantum/debounce/debounce_sym_g.c

index e365cdf037727b9aa7a6d8d44bc6dfb0a6e876f1..63bf2a64be0b6439067f65d1cdd7f3e88cc2fbcd 100644 (file)
@@ -45,7 +45,7 @@ void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool
 #else //no debouncing.
 void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed)
 {
-  for (int i = 0; i < MATRIX_ROWS; i++) {
+  for (int i = 0; i < num_rows; i++) {
     cooked[i] = raw[i];
   }
 }