From c7b98a51aac56f4e179c1c3af8870b129238524d Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Wed, 15 May 2024 08:15:28 -0300 Subject: [PATCH] Update esp32-hal-uart.c (#9637) --- cores/esp32/esp32-hal-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index 0aa5090b6..0dde37ee2 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -536,9 +536,9 @@ uart_t *uartBegin( retCode &= uartSetPins(uart_nr, rxPin, txPin, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE); } if (!retCode) { + log_e("UART%d initialization error.", uart->num); uartEnd(uart_nr); uart = NULL; - log_e("UART%d initialization error.", uart->num); } else { uartFlush(uart); log_v("UART%d initialization done.", uart->num);