diff --git a/ports/rp2/machine_uart.c b/ports/rp2/machine_uart.c index 689906003e7dc..955e4a8479913 100644 --- a/ports/rp2/machine_uart.c +++ b/ports/rp2/machine_uart.c @@ -458,6 +458,7 @@ static mp_obj_t mp_machine_uart_make_new(const mp_obj_type_t *type, size_t n_arg } static void mp_machine_uart_deinit(machine_uart_obj_t *self) { + uart_tx_wait_blocking(self->uart); // Flush TX FIFO if necessary uart_deinit(self->uart); if (self->uart_id == 0) { irq_set_enabled(UART0_IRQ, false);
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: