From 05fef96e0da1a5b425a150033acc78248652c254 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 17 Feb 2021 17:26:57 +1100 Subject: [PATCH] Fix compilation error for `tap_code_delay()` (#11938) --- tmk_core/common/action.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 74bfc06264a5..66e7e10026ce 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -947,7 +947,9 @@ void unregister_code(uint8_t code) { */ void tap_code_delay(uint8_t code, uint16_t delay) { register_code(code); - wait_ms(delay); + for (uint16_t i = delay; i > 0; i--) { + wait_ms(1); + } unregister_code(code); }