From bdb8cdd88042c57643023c55bb31a0d4099c3c63 Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Wed, 15 May 2024 05:50:46 -0300 Subject: [PATCH] Update esp32-hal-uart.c --- 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 0aa5090b6bd..0dde37ee297 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);