Commit 5fabf57a authored by Eric Duminil's avatar Eric Duminil
Browse files

Merge branch 'edoe/ampel-firmware-dev/wifioff' into develop

parents b48d4d18 2e54a5dd
Pipeline #2806 failed with stage
......@@ -55,6 +55,19 @@
* and define your credentials and parameters in 'config.h'.
*/
/*****************************************************************
* PreInit *
*****************************************************************/
void preinit() {
#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
}
/*****************************************************************
* Setup *
*****************************************************************/
......
Markdown is supported
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