diff options
author | Ryan <fauxpark@gmail.com> | 2022-07-02 22:10:08 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 22:10:08 +1000 |
commit | 3ecb0a80af9e4ce4194a34032642933641730706 (patch) | |
tree | 3d4b0e24336762dc9b45a746334ebc09a5c59db1 /quantum/process_keycode | |
parent | 7e41eb02773207dd4a014575fe750f8d511bfb5b (diff) |
Feature-ify Send String (#17275)
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r-- | quantum/process_keycode/process_auto_shift.c | 2 | ||||
-rw-r--r-- | quantum/process_keycode/process_dynamic_tapping_term.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_auto_shift.c b/quantum/process_keycode/process_auto_shift.c index e6a7c01f2a..8cb45bc0ae 100644 --- a/quantum/process_keycode/process_auto_shift.c +++ b/quantum/process_keycode/process_auto_shift.c @@ -325,11 +325,13 @@ void autoshift_disable(void) { # ifndef AUTO_SHIFT_NO_SETUP void autoshift_timer_report(void) { +# ifdef SEND_STRING_ENABLE char display[8]; snprintf(display, 8, "\n%d\n", autoshift_timeout); send_string((const char *)display); +# endif } # endif diff --git a/quantum/process_keycode/process_dynamic_tapping_term.c b/quantum/process_keycode/process_dynamic_tapping_term.c index bdc5529e33..b682f34da6 100644 --- a/quantum/process_keycode/process_dynamic_tapping_term.c +++ b/quantum/process_keycode/process_dynamic_tapping_term.c @@ -22,12 +22,14 @@ #endif static void tapping_term_report(void) { +#ifdef SEND_STRING_ENABLE const char *tapping_term_str = get_u16_str(g_tapping_term, ' '); // Skip padding spaces while (*tapping_term_str == ' ') { tapping_term_str++; } send_string(tapping_term_str); +#endif } bool process_dynamic_tapping_term(uint16_t keycode, keyrecord_t *record) { |