Skip to content

Commit 91bca6c

Browse files
authored
Fix compilation of HardwareSerial.cpp (#5677)
Fix compilation in case NO_GLOBAL_INSTANCES || NO_GLOBAL_SERIAL is defined.
1 parent 204f360 commit 91bca6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/HardwareSerial.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ HardwareSerial Serial1(1);
8787
#if SOC_UART_NUM > 2
8888
HardwareSerial Serial2(2);
8989
#endif
90-
#endif
9190

9291
void serialEventRun(void)
9392
{
@@ -105,6 +104,7 @@ void serialEventRun(void)
105104
if(Serial2.available()) serialEvent2();
106105
#endif
107106
}
107+
#endif
108108

109109

110110
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL), _rxBufferSize(256) {}

0 commit comments

Comments
 (0)