Skip to content

Commit

Permalink
Fix compilation error for tap_code_delay() (qmk#11938)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Feb 17, 2021
1 parent 9254f8c commit 05fef96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tmk_core/common/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 05fef96

Please sign in to comment.