From 0cfebcf891e237ae477531127f63b9bbbf182951 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Fri, 14 Feb 2025 14:33:39 +0100 Subject: [PATCH] tweak debounce --- common/config.h | 3 +++ rules.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/common/config.h b/common/config.h index 086d429..0f7d9fd 100644 --- a/common/config.h +++ b/common/config.h @@ -12,6 +12,9 @@ // from its 10ms default to the 1ms minimum that USB 1.x (Full Speed) allows: #define USB_POLLING_INTERVAL_MS 1 +// try to be nice to the old switches I did harvest +#define DEBOUNCE 10 + // home row mods #define CHORDAL_HOLD #define PERMISSIVE_HOLD diff --git a/rules.mk b/rules.mk index 4b9859f..3313f49 100644 --- a/rules.mk +++ b/rules.mk @@ -1,6 +1,9 @@ # Enable N-Key Rollover NKRO_ENABLE = yes +# use more snappy debounce algo +DEBOUNCE_TYPE = asym_eager_defer_pk + # add bongocat & luna for OLEDs ifeq ($(strip $(OLED_ENABLE)), yes) SRC += features/oled_bongocat.c