summaryrefslogtreecommitdiff
path: root/quantum/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/matrix.c')
-rw-r--r--quantum/matrix.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/quantum/matrix.c b/quantum/matrix.c
index 71292db511..8fc4175bde 100644
--- a/quantum/matrix.c
+++ b/quantum/matrix.c
@@ -51,9 +51,8 @@ static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
#endif
/* matrix state(1:on, 0:off) */
-static matrix_row_t raw_matrix[MATRIX_ROWS];
-
-static matrix_row_t matrix[MATRIX_ROWS];
+static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values
+static matrix_row_t matrix[MATRIX_ROWS]; //debounced values
#if (DIODE_DIRECTION == COL2ROW)
static void init_cols(void);
@@ -123,7 +122,7 @@ void matrix_init(void) {
raw_matrix[i] = 0;
matrix[i] = 0;
}
- debounce_init(MATRIX_ROWS);
+ debounce_init();
matrix_init_quantum();
}
@@ -144,7 +143,7 @@ uint8_t matrix_scan(void)
}
#endif
- debounce(raw_matrix, matrix, MATRIX_ROWS, changed);
+ debounce(raw_matrix, matrix, changed);
matrix_scan_quantum();
return 1;