Skip to content
Prev Previous commit
Next Next commit
Remove Serial definition if not needed
  • Loading branch information
paulocsanz committed Jul 4, 2021
commit faa662e338a1c98b05ed3854dfe47d41af7a40cc
4 changes: 4 additions & 0 deletions cores/esp8266/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,12 @@ class HardwareSerial: public Stream
size_t _rx_size;
};

#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
extern HardwareSerial Serial;
#endif
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL1)
extern HardwareSerial Serial1;
#endif

extern void serialEventRun(void) __attribute__((weak));

Expand Down