Unverified Commit c7b98a51 authored by Rodrigo Garcia's avatar Rodrigo Garcia Committed by GitHub

Update esp32-hal-uart.c (#9637)

parent a3c8a48e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment