Skip to content

Commit 06b2dfa

Browse files
authored
fix(uart): inverting rx instead of tx
1 parent 9541212 commit 06b2dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ bool uartSetRxInvert(uart_t *uart, bool invert) {
10141014
}
10151015

10161016
bool uartSetTxInvert(uart_t *uart, bool invert) {
1017-
return uartPinSignalInversion(uart, UART_SIGNAL_RXD_INV, invert);
1017+
return uartPinSignalInversion(uart, UART_SIGNAL_TXD_INV, invert);
10181018
}
10191019

10201020
bool uartSetCtsInvert(uart_t *uart, bool invert) {

0 commit comments

Comments
 (0)