diff options
author | Ryan <fauxpark@gmail.com> | 2021-02-17 17:26:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 17:26:57 +1100 |
commit | be70f466fef0a5248bf0f6b8003d2f5e7b81eec8 (patch) | |
tree | b74a744cf393edafca7ffd45a1b48a02a784b78d /tmk_core/common | |
parent | 568865597142fd0fd48ba9b449c4560616472127 (diff) | |
download | qmk_firmware-be70f466fef0a5248bf0f6b8003d2f5e7b81eec8.tar.gz qmk_firmware-be70f466fef0a5248bf0f6b8003d2f5e7b81eec8.zip |
Fix compilation error for `tap_code_delay()` (#11938)
Diffstat (limited to 'tmk_core/common')
-rw-r--r-- | tmk_core/common/action.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 74bfc06264..66e7e10026 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); } |