Commit 278a1ce7 authored by Eric Duminil's avatar Eric Duminil
Browse files

Calibration countdown : user can stop pressing

A short red wheel is displayed after the LED countdown has been
completed. It prevents a new countdown from starting, or night mode to
be activated.

Since a red wheel is displayed at the start of the calibration process
anyway (until measurements are stable enough), it should hopefully not
be too surprising.
parent d4a8e93d
Pipeline #4406 passed with stage
in 1 minute and 53 seconds
......@@ -190,7 +190,9 @@ void checkFlashButton() {
} else {
Serial.println(F("Flash has been pressed for a long time. Keep it pressed for calibration."));
if (led_effects::countdownToZero()) {
Serial.println(F("You can now release the button."));
sensor::startCalibrationProcess();
led_effects::showKITTWheel(color::red, 2);
}
}
led_effects::onBoardLEDOff();
......
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