update board_test always output to uart regardless of LOGGER option

This commit is contained in:
hathach
2025-07-02 17:27:03 +07:00
parent 52f0427096
commit a64e3eb0aa
6 changed files with 18 additions and 20 deletions

View File

@@ -52,6 +52,9 @@ int main(void) {
int ch = board_getchar();
if (ch > 0) {
board_putchar(ch);
#ifndef LOGGER_UART
board_uart_write(&ch, 1);
#endif
}
// Blink and print every interval ms
@@ -61,7 +64,10 @@ int main(void) {
if (ch < 0) {
// skip if echoing
printf(HELLO_STR);
#ifndef LOGGER_UART
board_uart_write(HELLO_STR, strlen(HELLO_STR));
#endif
}
board_led_write(led_state);