Skip to content

Commit

Permalink
fix(uart): Fix macro guard
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Oct 10, 2024
1 parent 38668e9 commit 4649270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cores/esp32/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ void serialEventRun(void) {
if (serialEvent && Serial0.available()) {
serialEvent();
}
#if SOC_UART_NUM > 1
#if SOC_UART_HP_NUM > 1
if (serialEvent1 && Serial1.available()) {
serialEvent1();
}
#endif
#if SOC_UART_NUM > 2
#if SOC_UART_HP_NUM > 2
if (serialEvent2 && Serial2.available()) {
serialEvent2();
}
Expand Down

0 comments on commit 4649270

Please sign in to comment.