Skip to content

Commit 4649270

Browse files
committed
fix(uart): Fix macro guard
1 parent 38668e9 commit 4649270

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
@@ -81,12 +81,12 @@ void serialEventRun(void) {
8181
if (serialEvent && Serial0.available()) {
8282
serialEvent();
8383
}
84-
#if SOC_UART_NUM > 1
84+
#if SOC_UART_HP_NUM > 1
8585
if (serialEvent1 && Serial1.available()) {
8686
serialEvent1();
8787
}
8888
#endif
89-
#if SOC_UART_NUM > 2
89+
#if SOC_UART_HP_NUM > 2
9090
if (serialEvent2 && Serial2.available()) {
9191
serialEvent2();
9292
}

0 commit comments

Comments
 (0)