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

Merge branch 'dev/debugreset' into 'develop'

co2_sensor: Add console command for SCD30 reset

See merge request co2ampel/ampel-firmware!8
parents 5d1580a9 b586cdf9
Pipeline #4019 passed with stage
in 1 minute and 40 seconds
......@@ -113,6 +113,7 @@ namespace sensor {
sensor_console::defineIntCommand("calibrate!", calibrateSensorRightNow,
F("600 (Calibrates right now, to given ppm)"));
sensor_console::defineIntCommand("auto_calibrate", setAutoCalibration, F("0/1 (Disables/enables autocalibration)"));
sensor_console::defineCommand("reset_scd", resetSCD, F("(Resets SCD30)"));
}
bool hasSensorSettled() {
......@@ -327,4 +328,10 @@ namespace sensor {
calibrateAndRestart();
}
}
void resetSCD() {
Serial.print(F("Resetting SCD30..."));
scd30.reset();
Serial.println(F("done."));
}
}
......@@ -33,5 +33,6 @@ namespace sensor {
void calibrateSensorToSpecificPPM(int32_t calibrationLevel);
void calibrateSensorRightNow(int32_t calibrationLevel);
void setAutoCalibration(int32_t autoCalibration);
void resetSCD();
}
#endif
Supports Markdown
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