Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
e1f39eb4
Commit
e1f39eb4
authored
Apr 10, 2021
by
edoe
Browse files
Disable Wifi when AMPEL_WIFI is not defined
parent
b48d4d18
Changes
1
Show whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
e1f39eb4
...
@@ -55,6 +55,18 @@
...
@@ -55,6 +55,18 @@
* and define your credentials and parameters in 'config.h'.
* and define your credentials and parameters in 'config.h'.
*/
*/
/*****************************************************************
* PreInit *
*****************************************************************/
void
preinit
()
{
#ifndef AMPEL_WIFI
// Disable wifi as default
ESP8266WiFiClass
::
preinitWiFiOff
();
#endif
}
/*****************************************************************
/*****************************************************************
* Setup *
* Setup *
*****************************************************************/
*****************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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