Skip to content

Commit c7b98a5

Browse files
authored
Update esp32-hal-uart.c (#9637)
1 parent a3c8a48 commit c7b98a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/esp32-hal-uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,9 @@ uart_t *uartBegin(
536536
retCode &= uartSetPins(uart_nr, rxPin, txPin, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
537537
}
538538
if (!retCode) {
539+
log_e("UART%d initialization error.", uart->num);
539540
uartEnd(uart_nr);
540541
uart = NULL;
541-
log_e("UART%d initialization error.", uart->num);
542542
} else {
543543
uartFlush(uart);
544544
log_v("UART%d initialization done.", uart->num);

0 commit comments

Comments
 (0)