onekey: Fix console output on AVR (#19930)
This commit is contained in:
parent
1d1c407e4e
commit
2d7240f730
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
char buffer[50];
|
char buffer[50];
|
||||||
sprintf(buffer, "ADC:%u\n", val);
|
sprintf(buffer, "ADC:%u\n", val);
|
||||||
#ifdef CONSOLE_ENABLE
|
#ifdef CONSOLE_ENABLE
|
||||||
printf(buffer);
|
uprintf("%s", buffer);
|
||||||
#else
|
#else
|
||||||
send_string(buffer);
|
send_string(buffer);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -17,7 +17,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
char buffer[100];
|
char buffer[100];
|
||||||
sprintf(buffer, "ID:%lu:%lu:%lu:%lu\n", id.data[0], id.data[1], id.data[2], id.data[3]);
|
sprintf(buffer, "ID:%lu:%lu:%lu:%lu\n", id.data[0], id.data[1], id.data[2], id.data[3]);
|
||||||
#ifdef CONSOLE_ENABLE
|
#ifdef CONSOLE_ENABLE
|
||||||
printf(buffer);
|
uprintf("%s", buffer);
|
||||||
#else
|
#else
|
||||||
send_string(buffer);
|
send_string(buffer);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue