summaryrefslogtreecommitdiff
path: root/keyboards/k_type
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/k_type')
-rw-r--r--keyboards/k_type/matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/k_type/matrix.c b/keyboards/k_type/matrix.c
index 7f230bebbc..d919bb8809 100644
--- a/keyboards/k_type/matrix.c
+++ b/keyboards/k_type/matrix.c
@@ -42,8 +42,8 @@ void matrix_init(void)
palSetPadMode(GPIOD, 1, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GPIOD, 4, 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();
}