mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
allows global object instances be switch off with defines (#2344)
This commit is contained in:
committed by
Ivan Grokhotkov
parent
bd01e44c76
commit
18297458be
@ -383,6 +383,6 @@ bool ESP8266HTTPUpdate::runUpdate(Stream& in, uint32_t size, String md5, int com
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_HTTPUPDATE)
|
||||
ESP8266HTTPUpdate ESPhttpUpdate;
|
||||
#endif
|
||||
|
@ -105,6 +105,8 @@ protected:
|
||||
bool _rebootOnUpdate = true;
|
||||
};
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_HTTPUPDATE)
|
||||
extern ESP8266HTTPUpdate ESPhttpUpdate;
|
||||
#endif
|
||||
|
||||
#endif /* ESP8266HTTPUPDATE_H_ */
|
||||
|
Reference in New Issue
Block a user