Skip to content

Commit

Permalink
Allow UART1 to be inverted (#8601)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWieland authored Jun 14, 2022
1 parent bdc71e5 commit 0e0ad1f
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 0e0ad1f

Please sign in to comment.