Skip to content

Commit b8316a4

Browse files
PaulWielandhasenradball
authored andcommitted
Allow UART1 to be inverted (esp8266#8601)
1 parent 8eb44c8 commit b8316a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/uart.cpp

Lines changed: 1 addition & 1 deletion
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)