summaryrefslogtreecommitdiffstats
path: root/keyboards/whitefox
diff options
context:
space:
mode:
authorKaleb Elwert <belak@coded.io>2018-01-10 22:15:06 +0100
committerJack Humbert <jack.humb@gmail.com>2018-01-12 19:23:38 +0100
commit3be81a2dafe13a9c2a591528db1b3973de923167 (patch)
treef39faeef36005e1152ad1f7a652d1565dfda1b1b /keyboards/whitefox
parent586a5e8d1da98c98cc3f14639ad820c2cd417860 (diff)
downloadqmk_firmware-3be81a2dafe13a9c2a591528db1b3973de923167.tar.gz
qmk_firmware-3be81a2dafe13a9c2a591528db1b3973de923167.tar.xz
Fix call to memset for various keyboards
Diffstat (limited to 'keyboards/whitefox')
-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();
}