Skip to content

Commit 7c13c85

Browse files
committed
Fixes UART1 and UART2 default pins for ESP32-S3
1 parent f5e40f9 commit 7c13c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/HardwareSerial.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ void serialEvent1(void) {}
6464
#ifndef RX2
6565
#if CONFIG_IDF_TARGET_ESP32
6666
#define RX2 16
67-
#else
67+
#elif CONFIG_IDF_TARGET_ESP32S3
6868
#define RX2 19
6969
#endif
7070
#endif
7171

7272
#ifndef TX2
7373
#if CONFIG_IDF_TARGET_ESP32
7474
#define TX2 17
75-
#else
75+
#elif CONFIG_IDF_TARGET_ESP32S3
7676
#define TX2 20
7777
#endif
7878
#endif

0 commit comments

Comments
 (0)