From 08bf6a7faaf25c36b1bc32d5f844e60d41e4b5cc Mon Sep 17 00:00:00 2001 From: Graham Sanderson Date: Wed, 20 Nov 2024 10:45:20 -0600 Subject: [PATCH] use configured uart_instance rather than default instance for flushing stdio uart (#2066) --- 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 = {