From f6ea61cd55a297612a11ff9e6840864b6dfdc341 Mon Sep 17 00:00:00 2001 From: Paul Wieland
Date: Tue, 7 Jun 2022 13:59:53 -0400 Subject: [PATCH] Allow UART1 to be inverted --- cores/esp8266/uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/uart.cpp b/cores/esp8266/uart.cpp index 1f657c9403..802072d438 100644 --- a/cores/esp8266/uart.cpp +++ b/cores/esp8266/uart.cpp @@ -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); }