From 842a541f848d2b3457719dc09ebd95b79a2093b4 Mon Sep 17 00:00:00 2001 From: Eric Duminil <eric.duminil@gmail.com> Date: Sun, 6 Jun 2021 22:06:22 +0200 Subject: [PATCH] Calibration process should stop if succesful --- ampel-firmware/co2_sensor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ampel-firmware/co2_sensor.cpp b/ampel-firmware/co2_sensor.cpp index 6e0e01e..069e746 100644 --- a/ampel-firmware/co2_sensor.cpp +++ b/ampel-firmware/co2_sensor.cpp @@ -164,6 +164,7 @@ namespace sensor { scd30.setForcedRecalibrationFactor(config::co2_calibration_level); Serial.println(F(" Done!")); Serial.println(F("Sensor calibrated.")); + switchState(BOOTUP); // In order to stop the calibration and select the desired timestep. //WARNING: Do not reset the ampel or the SCD30! //At least one measurement needs to happen in order for the calibration to be correctly applied. } -- GitLab