Unverified Commit 91bca6c0 authored by Clemens Kirchgatterer's avatar Clemens Kirchgatterer Committed by GitHub

Fix compilation of HardwareSerial.cpp (#5677)

Fix compilation in case NO_GLOBAL_INSTANCES || NO_GLOBAL_SERIAL is defined.
parent 204f360d
......@@ -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) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment