mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-26 02:17:38 +06:00
Make sendstring respect TAP_CODE_DELAY
(#9623)
This commit is contained in:
parent
65c9da5a65
commit
00fc35539d
|
@ -438,8 +438,7 @@ void send_string_with_delay(const char *str, uint8_t interval) {
|
||||||
if (ascii_code == SS_TAP_CODE) {
|
if (ascii_code == SS_TAP_CODE) {
|
||||||
// tap
|
// tap
|
||||||
uint8_t keycode = *(++str);
|
uint8_t keycode = *(++str);
|
||||||
register_code(keycode);
|
tap_code(keycode);
|
||||||
unregister_code(keycode);
|
|
||||||
} else if (ascii_code == SS_DOWN_CODE) {
|
} else if (ascii_code == SS_DOWN_CODE) {
|
||||||
// down
|
// down
|
||||||
uint8_t keycode = *(++str);
|
uint8_t keycode = *(++str);
|
||||||
|
@ -480,8 +479,7 @@ void send_string_with_delay_P(const char *str, uint8_t interval) {
|
||||||
if (ascii_code == SS_TAP_CODE) {
|
if (ascii_code == SS_TAP_CODE) {
|
||||||
// tap
|
// tap
|
||||||
uint8_t keycode = pgm_read_byte(++str);
|
uint8_t keycode = pgm_read_byte(++str);
|
||||||
register_code(keycode);
|
tap_code(keycode);
|
||||||
unregister_code(keycode);
|
|
||||||
} else if (ascii_code == SS_DOWN_CODE) {
|
} else if (ascii_code == SS_DOWN_CODE) {
|
||||||
// down
|
// down
|
||||||
uint8_t keycode = pgm_read_byte(++str);
|
uint8_t keycode = pgm_read_byte(++str);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user