Fix compilation of HardwareSerial.cpp (#5677)

Fix compilation in case NO_GLOBAL_INSTANCES || NO_GLOBAL_SERIAL is defined.
This commit is contained in:
Clemens Kirchgatterer
2021-10-01 14:06:16 +02:00
committed by GitHub
parent 204f360dce
commit 91bca6c074

View File

@ -87,7 +87,6 @@ HardwareSerial Serial1(1);
#if SOC_UART_NUM > 2
HardwareSerial Serial2(2);
#endif
#endif
void serialEventRun(void)
{
@ -105,6 +104,7 @@ void serialEventRun(void)
if(Serial2.available()) serialEvent2();
#endif
}
#endif
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL), _rxBufferSize(256) {}