Skip to content

Commit 0e0ad1f

Browse files
authored
Allow UART1 to be inverted (#8601)
1 parent bdc71e5 commit 0e0ad1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/uart.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ uart_init(int uart_nr, int baudrate, int config, int mode, int tx_pin, size_t rx
696696
}
697697

698698
uart_set_baudrate(uart, baudrate);
699-
if(uart->uart_nr == UART0 && invert)
699+
if((uart->uart_nr == UART0 || uart->uart_nr == UART1) && invert)
700700
{
701701
config |= BIT(UCDTRI) | BIT(UCRTSI) | BIT(UCTXI) | BIT(UCDSRI) | BIT(UCCTSI) | BIT(UCRXI);
702702
}

0 commit comments

Comments
 (0)