Commit a412abe2 authored by Käppler's avatar Käppler
Browse files

co2_sensor: Reset SCD30 after startup

Sometimes after a hard reset of the ESP the SCD30
needs a long time until returning the first measurement.
Resetting it after startup seems to fix this behaviour.
parent 6751d607
...@@ -83,6 +83,10 @@ namespace sensor { ...@@ -83,6 +83,10 @@ namespace sensor {
ESP.restart(); ESP.restart();
} }
// Sometimes after a hard reset of the ESP the SCD30 needs
// a long time until returning the first measurement. Resetting it
// after startup seems to fix this behaviour.
scd30.reset();
switchState(BOOTUP); switchState(BOOTUP);
Serial.print(F("Setting temperature offset to -")); Serial.print(F("Setting temperature offset to -"));
......
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