co2_sensor: Add new state INVALID (co2<=0)
This state is showed with red waiting LEDs. Previously, the state 'BOOTUP' with blue waiting LEDs was used to show invalid measurements. Use blue waiting LEDs now only during sensor acclimatization.
-
Looks good.
There are many states now.
INITIAL
areCALIBRATION
are basically unused, because they are set for only a few ms, and aren't involved in logic. Should they be removed? -
Author Owner
I would vote against removing them, because AFAICT otherwise you would need an additional flag at least for calibration. If we leave it as it is, everything is in one place.
-
Is the CALIBRATION state used anywhere? It's set once, and the Ampel is restarted in the same function.
-
Author Owner
Oh, you're right. Sorry. No, I will remove it. Thanks for spotting this.
Please register or sign in to comment