aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/whitefox/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/whitefox/matrix.c')
-rw-r--r--keyboards/whitefox/matrix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/whitefox/matrix.c b/keyboards/whitefox/matrix.c
index ff334c03a..c6f2c8d62 100644
--- a/keyboards/whitefox/matrix.c
+++ b/keyboards/whitefox/matrix.c
@@ -47,8 +47,9 @@ void matrix_init(void)
palSetPadMode(GPIOC, 10, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOC, 11, PAL_MODE_OUTPUT_PUSHPULL);
- memset(matrix, 0, MATRIX_ROWS);
- memset(matrix_debouncing, 0, MATRIX_ROWS);
+ memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t));
+ memset(matrix_debouncing, 0, MATRIX_ROWS * sizeof(matrix_row_t));
+
matrix_init_quantum();
}