aboutsummaryrefslogtreecommitdiff
path: root/matrix.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-04-29 23:58:40 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-04-29 23:58:40 +0200
commitaf302afcb0aaa08bd9c093b2c8ff20647a001919 (patch)
treefb43449452578c1bf6819ef1962b4ef7ac2a0a22 /matrix.c
parent96c91beb9fe3ad5f2f140e6fcaa9dd68115d0e82 (diff)
downloadtmk7637-af302afcb0aaa08bd9c093b2c8ff20647a001919.tar.gz
fixed some memset() and document how to flash firmwares manually
Diffstat (limited to 'matrix.c')
-rw-r--r--matrix.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/matrix.c b/matrix.c
index 7ca3def..5c4ecbd 100644
--- a/matrix.c
+++ b/matrix.c
@@ -63,8 +63,8 @@ void matrix_init(void)
init_pins();
/* initialize matrix state: all keys off */
- memset(matrix, sizeof(matrix), 0);
- memset(matrix_debouncing, sizeof(matrix_debouncing), 0);
+ memset(matrix, 0, sizeof(matrix));
+ memset(matrix_debouncing, 0, sizeof(matrix_debouncing));
}
/*
@@ -124,6 +124,11 @@ uint8_t matrix_scan(void)
* key event delivery.
* When using the buzzer, a short 50ms beep is played every time
* a new key is pressed.
+ *
+ * FIXME: The Model F solenoids behaved differently.
+ * They retract automatically after a given "Extend time"
+ * (see Model F Technical Reference, p.182).
+ * We should experiment with both methods.
*/
switch (keyclick_mode) {
case KEYCLICK_SOLENOID: