Commit 509121d1 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 a06d0c56
Pipeline #4040 failed with stage
in 1 minute and 42 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