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

Log which sensor is expected

parent 0abf60b4
Pipeline #6036 passed with stage
in 1 minute and 57 seconds
...@@ -73,11 +73,12 @@ namespace sensor { ...@@ -73,11 +73,12 @@ namespace sensor {
* SDA --- SDA (GPIO21) //NOTE: GPIO1 would be more convenient (right next to GPO3) * SDA --- SDA (GPIO21) //NOTE: GPIO1 would be more convenient (right next to GPO3)
*/ */
#endif #endif
Serial.println(F("Sensor : Sensirion SCD30"));
Serial.println(); Serial.println();
scd30.enableDebugging(); // Prints firmware version in the console. scd30.enableDebugging(); // Prints firmware version in the console.
if (!scd30.begin(config::auto_calibrate_sensor)) { if (!scd30.begin(config::auto_calibrate_sensor)) {
Serial.println(F("ERROR - CO2 sensor not detected. Please check wiring!")); Serial.println(F("ERROR - Sensirion SCD30 not detected. Please check wiring!"));
led_effects::showKITTWheel(color::red, 30); led_effects::showKITTWheel(color::red, 30);
ESP.restart(); ESP.restart();
} }
......
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