From 278a1ce71b30b1bb2bb4893f8db350b3577cfd44 Mon Sep 17 00:00:00 2001 From: Eric Duminil <eric.duminil@gmail.com> Date: Fri, 18 Jun 2021 16:03:41 +0200 Subject: [PATCH] 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. --- ampel-firmware/ampel-firmware.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ampel-firmware/ampel-firmware.ino b/ampel-firmware/ampel-firmware.ino index 3fdc1d1..fa29f4a 100644 --- a/ampel-firmware/ampel-firmware.ino +++ b/ampel-firmware/ampel-firmware.ino @@ -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(); -- GitLab