Commit dc43e04e authored by Eric Duminil's avatar Eric Duminil
Browse files

Resetting if sensor not found

parent cc50cfb7
Pipeline #3148 passed with stage
in 1 minute and 43 seconds
...@@ -44,10 +44,9 @@ namespace sensor { ...@@ -44,10 +44,9 @@ namespace sensor {
// CO2 // CO2
if (scd30.begin(config::auto_calibrate_sensor) == false) { if (scd30.begin(config::auto_calibrate_sensor) == false) {
Serial.println("Air sensor not detected. Please check wiring. Freezing..."); Serial.println(F("ERROR - CO2 sensor not detected. Please check wiring!"));
while (1) { led_effects::showKITTWheel(color::red, 30);
led_effects::showWaitingLED(color::red); ESP.restart();
}
} }
// SCD30 has its own timer. // SCD30 has its own timer.
......
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