1
0
Fork 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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}