Skip to content

Commit

Permalink
use configured uart_instance rather than default instance for flushin…
Browse files Browse the repository at this point in the history
…g stdio uart
  • Loading branch information
kilograham committed Nov 20, 2024
1 parent 482dd59 commit c205895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp2_common/pico_stdio_uart/stdio_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void stdio_uart_set_chars_available_callback(void (*fn)(void*), void *par
#endif

static void stdio_uart_out_flush(void) {
uart_default_tx_wait_blocking();
uart_tx_wait_blocking(uart_instance);
}

stdio_driver_t stdio_uart = {
Expand Down

0 comments on commit c205895

Please sign in to comment.