Skip to content

Commit 2ef956b

Browse files
authored
Update HardwareSerial.cpp
1 parent 29aff73 commit 2ef956b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cores/esp32/HardwareSerial.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void serialEvent(void) {}
3737
#ifndef RX1
3838
#if CONFIG_IDF_TARGET_ESP32
3939
#define RX1 9
40-
#elif CONFIG_IDF_TARGET_ESP32S2
40+
#elif CONFIG_IDF_TARGET_ESP32S2
4141
#define RX1 18
4242
#elif CONFIG_IDF_TARGET_ESP32C3
4343
#define RX1 18
@@ -86,8 +86,6 @@ void serialEvent2(void) {}
8686
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
8787
#if ARDUINO_USB_CDC_ON_BOOT //Serial used for USB CDC
8888
HardwareSerial Serial0(0);
89-
#elif ARDUINO_HW_CDC_ON_BOOT
90-
HardwareSerial Serial0(0);
9189
#else
9290
HardwareSerial Serial(0);
9391
#endif
@@ -102,8 +100,6 @@ void serialEventRun(void)
102100
{
103101
#if ARDUINO_USB_CDC_ON_BOOT //Serial used for USB CDC
104102
if(Serial0.available()) serialEvent();
105-
#elif ARDUINO_HW_CDC_ON_BOOT
106-
if(Serial0.available()) serialEvent();
107103
#else
108104
if(Serial.available()) serialEvent();
109105
#endif

0 commit comments

Comments
 (0)