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

preinitWiFiOff() is only required for ESP8266

parent e1f39eb4
......@@ -60,8 +60,9 @@
* PreInit *
*****************************************************************/
void preinit() {
#ifndef AMPEL_WIFI
// Disable wifi as default
#if !defined(AMPEL_WIFI) && defined(ESP8266)
// WiFi would be initialized otherwise (on ESP8266), even if unused.
// see https://github.com/esp8266/Arduino/issues/2111#issuecomment-224251391
ESP8266WiFiClass::preinitWiFiOff();
#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