瀏覽代碼

Bug fix - was using MATRIX_ROWS instead of num_rows

Alex Ong 6 年之前
父節點
當前提交
7cb8d3c7a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      quantum/debounce/debounce_sym_g.c

+ 1 - 1
quantum/debounce/debounce_sym_g.c

@@ -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];
   }
 }