Skip to content

Commit

Permalink
Allow UART1 to be inverted (esp8266#8601)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWieland authored and hasenradball committed Nov 18, 2024
1 parent 8eb44c8 commit b8316a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ uart_init(int uart_nr, int baudrate, int config, int mode, int tx_pin, size_t rx
}

uart_set_baudrate(uart, baudrate);
if(uart->uart_nr == UART0 && invert)
if((uart->uart_nr == UART0 || uart->uart_nr == UART1) && invert)
{
config |= BIT(UCDTRI) | BIT(UCRTSI) | BIT(UCTXI) | BIT(UCDSRI) | BIT(UCCTSI) | BIT(UCRXI);
}
Expand Down

0 comments on commit b8316a4

Please sign in to comment.