Feature-ify Send String (#17275)
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user