From ae5ec395cfd7971fae85115c3e2cb71ccd1f2ef8 Mon Sep 17 00:00:00 2001 From: Ga68 Date: Tue, 28 Dec 2021 22:05:59 -0800 Subject: [PATCH] Adjust tap_code16 to account for TAP_HOLD_CAPS_DELAY --- quantum/quantum.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/quantum/quantum.c b/quantum/quantum.c index 35b6351e9d99..1834608f4e87 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -98,9 +98,12 @@ void unregister_code16(uint16_t code) { void tap_code16(uint16_t code) { register_code16(code); -#if TAP_CODE_DELAY > 0 - wait_ms(TAP_CODE_DELAY); -#endif + if (code == KC_CAPS_LOCK) { + wait_ms(TAP_HOLD_CAPS_DELAY); + } + else if (TAP_CODE_DELAY > 0) { + wait_ms(TAP_CODE_DELAY); + } unregister_code16(code); }