summaryrefslogtreecommitdiffstats
path: root/tests/test_common/matrix.c
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-06-18 13:40:22 +0200
committerFred Sundvik <fsundvik@gmail.com>2017-06-18 20:22:22 +0200
commite85b1857968d4c0378b9778650c30b9d2bca3ea9 (patch)
treeec6de5be2bcf71e44a3ba83c87bc15363d51edc6 /tests/test_common/matrix.c
parent6a76192fa4bb8c5757c32cf3c65c4e7e7f6c7c3e (diff)
downloadqmk_firmware-e85b1857968d4c0378b9778650c30b9d2bca3ea9.tar.gz
qmk_firmware-e85b1857968d4c0378b9778650c30b9d2bca3ea9.tar.xz
Test two keys pressed at once
Diffstat (limited to 'tests/test_common/matrix.c')
-rw-r--r--tests/test_common/matrix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_common/matrix.c b/tests/test_common/matrix.c
index 85556e2c4..5ab5bac6c 100644
--- a/tests/test_common/matrix.c
+++ b/tests/test_common/matrix.c
@@ -17,10 +17,12 @@
#include "matrix.h"
#include "test_matrix.h"
+#include <string.h>
static matrix_row_t matrix[MATRIX_ROWS] = {};
void matrix_init(void) {
+ memset(matrix, 0, sizeof(matrix));
matrix_init_quantum();
}