1
0
Fork 0
forked from forks/qmk_firmware

Fix compilation error for tap_code_delay() (#11938)

This commit is contained in:
Ryan 2021-02-17 17:26:57 +11:00 committed by GitHub
parent 5688655971
commit be70f466fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}