1
0

Insert delay between shifted chars in send_string_with_delay (#19280)

This commit is contained in:
Skyler Hawthorne
2024-02-16 09:01:01 -05:00
committed by GitHub
parent 3a0f11a661
commit 13434fc066
3 changed files with 38 additions and 16 deletions

View File

@@ -1011,9 +1011,7 @@ __attribute__((weak)) void unregister_code(uint8_t code) {
*/
__attribute__((weak)) void tap_code_delay(uint8_t code, uint16_t delay) {
register_code(code);
for (uint16_t i = delay; i > 0; i--) {
wait_ms(1);
}
wait_ms(delay);
unregister_code(code);
}