From 181d4c5d595b9bf9b838b6a0c96468df3e913162 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Thu, 7 Sep 2023 09:21:55 -0600 Subject: [PATCH] kbscan: Increase debounce time from 5ms to 10ms Some users are reporting that a debounce time of 5ms is not enough to prevent keys from registering twice. Split the difference between the old and the new debounce times and set it to 10ms. Ref: https://github.com/system76/firmware-open/issues/471 Signed-off-by: Tim Crawford --- src/board/system76/common/kbscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/board/system76/common/kbscan.c b/src/board/system76/common/kbscan.c index 9ec661a..4d3b650 100644 --- a/src/board/system76/common/kbscan.c +++ b/src/board/system76/common/kbscan.c @@ -21,7 +21,7 @@ #endif // KM_NKEY // Debounce time in milliseconds -#define DEBOUNCE_DELAY 5 +#define DEBOUNCE_DELAY 10 // Deselect all columns for reading #define KBSCAN_MATRIX_NONE 0xFF