diff options
author | Kaleb Elwert <belak@coded.io> | 2018-01-10 13:15:06 -0800 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-01-12 13:23:38 -0500 |
commit | 3be81a2dafe13a9c2a591528db1b3973de923167 (patch) | |
tree | f39faeef36005e1152ad1f7a652d1565dfda1b1b /keyboards/ergodox_infinity/matrix.c | |
parent | 586a5e8d1da98c98cc3f14639ad820c2cd417860 (diff) | |
download | qmk_firmware-3be81a2dafe13a9c2a591528db1b3973de923167.tar.gz |
Fix call to memset for various keyboards
Diffstat (limited to 'keyboards/ergodox_infinity/matrix.c')
-rw-r--r-- | keyboards/ergodox_infinity/matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/ergodox_infinity/matrix.c b/keyboards/ergodox_infinity/matrix.c index 3364f8c90..3baa07f58 100644 --- a/keyboards/ergodox_infinity/matrix.c +++ b/keyboards/ergodox_infinity/matrix.c @@ -62,8 +62,8 @@ void matrix_init(void) palSetPadMode(GPIOC, 11, PAL_MODE_OUTPUT_PUSHPULL); palSetPadMode(GPIOD, 0, PAL_MODE_OUTPUT_PUSHPULL); - memset(matrix, 0, MATRIX_ROWS); - memset(matrix_debouncing, 0, LOCAL_MATRIX_ROWS); + memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); + memset(matrix_debouncing, 0, LOCAL_MATRIX_ROWS * sizeof(matrix_row_t)); matrix_init_quantum(); } |