diff --git a/ampel-firmware/co2_sensor.cpp b/ampel-firmware/co2_sensor.cpp index 3b2e3c2df57e8f3a9ea6952a74bffc2e8922c614..8756ca095b1e320e0d57a8ac6752da5d549729a0 100644 --- a/ampel-firmware/co2_sensor.cpp +++ b/ampel-firmware/co2_sensor.cpp @@ -83,6 +83,11 @@ namespace sensor { ESP.restart(); } + // Changes of the SCD30's measurement timestep do not come into effect + // before the next measurement takes place. That means that after a hard reset + // of the ESP the SCD30 sometimes needs a long time until switching back to 2 s + // for acclimatization. Resetting it after startup seems to fix this behaviour. + scd30.reset(); switchState(BOOTUP); Serial.print(F("Setting temperature offset to -"));