Commit 39347f6e authored by Käppler's avatar Käppler
Browse files

Do not check flash button during calibration

It does not make sense to toggle night mode
or start another round of countdown during
calibration.

Closes #4.
parent 0afa6432
Pipeline #4041 passed with stage
in 1 minute and 50 seconds
......@@ -141,7 +141,12 @@ void loop() {
keepServicesAlive();
// Short press for night mode, Long press for calibration.
checkFlashButton();
// Inactive during calibration.
if (!(sensor::current_state == sensor::PREPARE_CALIBRATION_STABLE ||
sensor::current_state == sensor::PREPARE_CALIBRATION_UNSTABLE))
{
checkFlashButton();
}
checkSerialInput();
......
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