Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
88944cef
Commit
88944cef
authored
Feb 07, 2022
by
Eric Duminil
Browse files
WiFi is off by default at boot
parent
fba01128
Pipeline
#5747
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
ampel-firmware/util.cpp
View file @
88944cef
...
@@ -4,13 +4,6 @@
...
@@ -4,13 +4,6 @@
#if defined(ESP8266)
#if defined(ESP8266)
# include <ESP8266WiFi.h> // required to get MAC address
# include <ESP8266WiFi.h> // required to get MAC address
const
char
*
current_board
=
"ESP8266"
;
const
char
*
current_board
=
"ESP8266"
;
# if !defined(AMPEL_WIFI)
void
preinit
()
{
// WiFi would be initialized otherwise (on ESP8266), even if unused.
// see https://github.com/esp8266/Arduino/issues/2111#issuecomment-224251391
ESP8266WiFiClass
::
preinitWiFiOff
();
}
# endif
#elif defined(ESP32)
#elif defined(ESP32)
# include <WiFi.h> // required to get MAC address
# include <WiFi.h> // required to get MAC address
const
char
*
current_board
=
"ESP32"
;
const
char
*
current_board
=
"ESP32"
;
...
...
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