From f178306df98426e06e6b3ef20b1967c37a591363 Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Sat, 13 Apr 2024 13:23:25 -0300 Subject: [PATCH] fixes RX1/TX1 + RX2/TX2 pins in HardwareSerial.h --- cores/esp32/HardwareSerial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/HardwareSerial.h b/cores/esp32/HardwareSerial.h index 72f41c6a1ef..7df71c24381 100644 --- a/cores/esp32/HardwareSerial.h +++ b/cores/esp32/HardwareSerial.h @@ -135,7 +135,7 @@ typedef enum { #endif // Default pins for UART1 are arbitrary, and defined here for convenience. - +#if SOC_UART_NUM > 1 #ifndef RX1 #if CONFIG_IDF_TARGET_ESP32 #define RX1 (gpio_num_t)9