From e093952dd2ac281e13cc68d3a3e58515a7cc589f Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Mon, 17 Jul 2023 12:40:33 -0600 Subject: [PATCH] kbscan: Reduce debounce time from 15ms to 5ms Allows increased typing speed while avoiding repeating keys due to contact bounce and keys being rejected by ghost key detection. This is the default value for QMK. 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 5805b49..124fa92 100644 --- a/src/board/system76/common/kbscan.c +++ b/src/board/system76/common/kbscan.c @@ -58,7 +58,7 @@ void kbscan_init(void) { } // Debounce time in milliseconds -#define DEBOUNCE_DELAY 15 +#define DEBOUNCE_DELAY 5 static uint8_t kbscan_get_row(uint8_t i) { // Report all keys as released when lid is closed