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 {
// CO2
if (scd30.begin(config::auto_calibrate_sensor) == false) {
Serial.println("Air sensor not detected. Please check wiring. Freezing...");
while (1) {
led_effects::showWaitingLED(color::red);
}
Serial.println(F("ERROR - CO2 sensor not detected. Please check wiring!"));
led_effects::showKITTWheel(color::red, 30);
ESP.restart();
}
// 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