summaryrefslogtreecommitdiffstats
path: root/quantum/debounce
diff options
context:
space:
mode:
authorAlex Ong <the.onga@gmail.com>2019-01-26 12:45:25 +0100
committerAlex Ong <the.onga@gmail.com>2019-01-26 12:45:25 +0100
commit7cb8d3c7a7fe4de4629af21a92f5415cdfdffa0c (patch)
treee311903fcdd53c5985de7f10c2c5eca270fd516a /quantum/debounce
parentb5b119544a4e943b3eb56f6a32f350c428f532f7 (diff)
downloadqmk_firmware-7cb8d3c7a7fe4de4629af21a92f5415cdfdffa0c.tar.gz
qmk_firmware-7cb8d3c7a7fe4de4629af21a92f5415cdfdffa0c.tar.xz
Bug fix - was using MATRIX_ROWS instead of num_rows
Diffstat (limited to 'quantum/debounce')
-rw-r--r--quantum/debounce/debounce_sym_g.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/debounce/debounce_sym_g.c b/quantum/debounce/debounce_sym_g.c
index e365cdf03..63bf2a64b 100644
--- a/quantum/debounce/debounce_sym_g.c
+++ b/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];
}
}