Commit 2e54a5dd authored by Eric Duminil's avatar Eric Duminil
Browse files

preinitWiFiOff() is only required for ESP8266

parent e1f39eb4
...@@ -60,8 +60,9 @@ ...@@ -60,8 +60,9 @@
* PreInit * * PreInit *
*****************************************************************/ *****************************************************************/
void preinit() { void preinit() {
#ifndef AMPEL_WIFI #if !defined(AMPEL_WIFI) && defined(ESP8266)
// Disable wifi as default // WiFi would be initialized otherwise (on ESP8266), even if unused.
// see https://github.com/esp8266/Arduino/issues/2111#issuecomment-224251391
ESP8266WiFiClass::preinitWiFiOff(); ESP8266WiFiClass::preinitWiFiOff();
#endif #endif
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment