From d296e62b60b09978b28df84c6670d6373877ff87 Mon Sep 17 00:00:00 2001 From: Jordan Speicher Date: Fri, 19 Jan 2024 16:21:59 -0600 Subject: [PATCH] kbscan: Increase debounce time from 10ms to 20ms I found that a debounce time of 10ms was causing very frequent twice-registered keys with my typing style. After setting the debounce time to 20ms I find that no repeated characters occur when typing 10 line of text. Ref: https://github.com/system76/firmware-open/issues/509 Signed-off-by: Jordan Speicher --- 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 5b7f89f1f..7e7294382 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 10 +#define DEBOUNCE_DELAY 20 bool kbscan_fn_held = false; bool kbscan_esc_held = false;