mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-24 19:42:27 +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
@ -139,4 +139,6 @@ IPAddress EthernetClass::dnsServerIP()
|
||||
return _dnsServerAddress;
|
||||
}
|
||||
|
||||
EthernetClass Ethernet;
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_ETHERNET)
|
||||
EthernetClass Ethernet;
|
||||
#endif
|
||||
|
@ -36,6 +36,8 @@ public:
|
||||
friend class EthernetServer;
|
||||
};
|
||||
|
||||
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_ETHERNET)
|
||||
extern EthernetClass Ethernet;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user