summaryrefslogtreecommitdiff
path: root/keyboards/jm60
diff options
context:
space:
mode:
authorKaleb Elwert <belak@coded.io>2018-01-10 13:15:06 -0800
committerJack Humbert <jack.humb@gmail.com>2018-01-12 13:23:38 -0500
commit3be81a2dafe13a9c2a591528db1b3973de923167 (patch)
treef39faeef36005e1152ad1f7a652d1565dfda1b1b /keyboards/jm60
parent586a5e8d1da98c98cc3f14639ad820c2cd417860 (diff)
Fix call to memset for various keyboards
Diffstat (limited to 'keyboards/jm60')
-rw-r--r--keyboards/jm60/matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/jm60/matrix.c b/keyboards/jm60/matrix.c
index 8430a5843b..01bb4a80d1 100644
--- a/keyboards/jm60/matrix.c
+++ b/keyboards/jm60/matrix.c
@@ -49,8 +49,8 @@ void matrix_init(void)
palSetPadMode(GPIOB, 1, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOB, 0, 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));
}
uint8_t matrix_scan(void)