Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
2e54a5dd
Commit
2e54a5dd
authored
Apr 10, 2021
by
Eric Duminil
Browse files
preinitWiFiOff() is only required for ESP8266
parent
e1f39eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
2e54a5dd
...
...
@@ -57,11 +57,12 @@
/*****************************************************************
* PreInit
*
* 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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment