Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Also works without wifi
parent
054e32aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ampel-firmware/ampel-firmware.ino
+2
-0
ampel-firmware/ampel-firmware.ino
with
2 additions
and
0 deletions
+2
-0
ampel-firmware/ampel-firmware.ino
+
2
-
0
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
)());
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets