Commit 7224beff authored by Käppler's avatar Käppler
Browse files

No special state handling in displayCO2OnLedRing

parent ffa9f3f9
......@@ -174,12 +174,6 @@ namespace sensor {
}
void displayCO2OnLedRing() {
if (co2 < 250) {
// Sensor should be calibrated.
led_effects::showWaitingLED(color::magenta);
switchState(NEEDSCALIBRATION);
return;
}
/**
* Display data, even if it's "old" (with breathing).
* A short delay is required in order to let background tasks run on the ESP8266.
......@@ -236,6 +230,13 @@ namespace sensor {
return false;
}
if (co2 < 250) {
// Sensor should be calibrated.
led_effects::showWaitingLED(color::magenta);
switchState(NEEDSCALIBRATION);
return false;
}
displayCO2OnLedRing();
return freshData;
}
......
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