From c205895b8bc30ff1db8e1846a989c1e14265eb57 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Tue, 19 Nov 2024 19:58:22 -0600 Subject: [PATCH] use configured uart_instance rather than default instance for flushing stdio uart --- src/rp2_common/pico_stdio_uart/stdio_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/pico_stdio_uart/stdio_uart.c b/src/rp2_common/pico_stdio_uart/stdio_uart.c index 63fab01c7..54cd86e01 100644 --- a/src/rp2_common/pico_stdio_uart/stdio_uart.c +++ b/src/rp2_common/pico_stdio_uart/stdio_uart.c @@ -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 = {