Skip to content

Commit d187ae0

Browse files
authored
fix SOC_UART_HP_NUM
1 parent 22b7e49 commit d187ae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/HardwareSerial.cpp

Lines changed: 2 additions & 2 deletions
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)