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
d1730e23
Commit
d1730e23
authored
May 16, 2021
by
Eric Duminil
Browse files
Also works without wifi
parent
054e32aa
Changes
1
Show whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
d1730e23
...
...
@@ -68,6 +68,7 @@ void setup() {
web_config
::
initialize
();
#ifdef AMPEL_WIFI
web_config
::
setWifiConnectionCallback
([]()
{
//TODO: Move somewhere else
led_effects
::
showKITTWheel
(
color
::
green
);
...
...
@@ -93,6 +94,7 @@ void setup() {
led_effects
::
showKITTWheel
(
color
::
red
);
Serial
.
println
(
F
(
"Connection to WiFi failed"
));
});
#endif
void
setWifiConnectionFailedCallback
(
void
(
*
function
)());
...
...
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