mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
Allow UART1 to be inverted (#8601)
This commit is contained in:
parent
bdc71e5801
commit
0e0ad1f645
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user