forked from espressif/arduino-esp32
Fix compilation of HardwareSerial.cpp (#5677)
Fix compilation in case NO_GLOBAL_INSTANCES || NO_GLOBAL_SERIAL is defined.
This commit is contained in:
committed by
GitHub
parent
204f360dce
commit
91bca6c074
@ -87,7 +87,6 @@ HardwareSerial Serial1(1);
|
|||||||
#if SOC_UART_NUM > 2
|
#if SOC_UART_NUM > 2
|
||||||
HardwareSerial Serial2(2);
|
HardwareSerial Serial2(2);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
void serialEventRun(void)
|
void serialEventRun(void)
|
||||||
{
|
{
|
||||||
@ -105,6 +104,7 @@ void serialEventRun(void)
|
|||||||
if(Serial2.available()) serialEvent2();
|
if(Serial2.available()) serialEvent2();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL), _rxBufferSize(256) {}
|
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL), _rxBufferSize(256) {}
|
||||||
|
Reference in New Issue
Block a user