1
0
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:
Paul Wieland 2022-06-14 11:33:09 -04:00 committed by GitHub
parent bdc71e5801
commit 0e0ad1f645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}