Update esp32-hal-uart.c (#9637)
This commit is contained in:
parent
a3c8a48eed
commit
c7b98a51aa
1 changed files with 1 additions and 1 deletions
|
|
@ -536,9 +536,9 @@ uart_t *uartBegin(
|
||||||
retCode &= uartSetPins(uart_nr, rxPin, txPin, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
|
retCode &= uartSetPins(uart_nr, rxPin, txPin, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
|
||||||
}
|
}
|
||||||
if (!retCode) {
|
if (!retCode) {
|
||||||
|
log_e("UART%d initialization error.", uart->num);
|
||||||
uartEnd(uart_nr);
|
uartEnd(uart_nr);
|
||||||
uart = NULL;
|
uart = NULL;
|
||||||
log_e("UART%d initialization error.", uart->num);
|
|
||||||
} else {
|
} else {
|
||||||
uartFlush(uart);
|
uartFlush(uart);
|
||||||
log_v("UART%d initialization done.", uart->num);
|
log_v("UART%d initialization done.", uart->num);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue