1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

allows global object instances be switch off with defines (#2344)

This commit is contained in:
Clemens Kirchgatterer
2016-08-01 05:21:50 +02:00
committed by Ivan Grokhotkov
parent bd01e44c76
commit 18297458be
26 changed files with 72 additions and 11 deletions

View File

@ -334,4 +334,6 @@ int ArduinoOTAClass::getCommand() {
return _cmd;
}
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_ARDUINOOTA)
ArduinoOTAClass ArduinoOTA;
#endif

View File

@ -68,6 +68,8 @@ class ArduinoOTAClass
String readStringUntil(char end);
};
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_ARDUINOOTA)
extern ArduinoOTAClass ArduinoOTA;
#endif
#endif /* __ARDUINO_OTA_H */