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

Note

parent 73c59253
Pipeline #6581 failed with stage
in 2 minutes and 29 seconds
...@@ -261,7 +261,7 @@ namespace sensor { ...@@ -261,7 +261,7 @@ namespace sensor {
last_measurement = now; last_measurement = now;
ntp::getLocalTime(timestamp); ntp::getLocalTime(timestamp);
co2 = sensor_S8->get_co2(); co2 = sensor_S8->get_co2();
//TODO: Check if there's really no temperature info available. //NOTE: S8 really doesn't have any temperature or humidity available.
temperature = 0.0; temperature = 0.0;
humidity = 0.0; humidity = 0.0;
...@@ -301,6 +301,7 @@ namespace sensor { ...@@ -301,6 +301,7 @@ namespace sensor {
if (isAutoCalibrationOn != autoCalibration) { if (isAutoCalibrationOn != autoCalibration) {
Serial.print(F("Turn autocalibration ")); Serial.print(F("Turn autocalibration "));
Serial.print(autoCalibration ? F("on") : F("off")); Serial.print(autoCalibration ? F("on") : F("off"));
// Default autocalibration period is 180h ~ 1 week
sensor_S8->set_ABC_period(autoCalibration ? 180 : 0); sensor_S8->set_ABC_period(autoCalibration ? 180 : 0);
delay(500); delay(500);
Serial.println(F(". Done!")); Serial.println(F(". Done!"));
......
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