Commit db032606 authored by Eric Duminil's avatar Eric Duminil
Browse files

Rainbow wheel for wifi connection, magenta KITT for AP

parent ade43786
Pipeline #5805 passed with stage
in 2 minutes and 32 seconds
......@@ -20,9 +20,16 @@ namespace wifi {
}
void tryConnection() {
for (int i = 0; i <= 30 && !connected(); i++) {
led_effects::showRainbowWheel();
//TODO: configurable timeout
for (int i = 0; i <= 30; i++) {
web_config::update();
if (connected()) {
break;
} else if (WiFi.status() == WL_NO_SHIELD) { // Access point, apparently
led_effects::showKITTWheel(0xFF0015, 1);
} else {
led_effects::showRainbowWheel();
}
Serial.print(".");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment