Make sendstring respect TAP_CODE_DELAY (#9623)

This commit is contained in:
Ryan
2020-07-03 03:08:19 +10:00
committed by Drashna Jael're
parent f32994a5ee
commit 3fa11d8613

View File

@@ -448,8 +448,7 @@ void send_string_with_delay(const char *str, uint8_t interval) {
if (ascii_code == SS_TAP_CODE) {
// tap
uint8_t keycode = *(++str);
register_code(keycode);
unregister_code(keycode);
tap_code(keycode);
} else if (ascii_code == SS_DOWN_CODE) {
// down
uint8_t keycode = *(++str);
@@ -490,8 +489,7 @@ void send_string_with_delay_P(const char *str, uint8_t interval) {
if (ascii_code == SS_TAP_CODE) {
// tap
uint8_t keycode = pgm_read_byte(++str);
register_code(keycode);
unregister_code(keycode);
tap_code(keycode);
} else if (ascii_code == SS_DOWN_CODE) {
// down
uint8_t keycode = pgm_read_byte(++str);