Commit 38d95d26 authored by Eric Duminil's avatar Eric Duminil
Browse files

co2_sensor: Removing unused method.

could be useful, but hasn't been integrated
yet.
parent ef911533
......@@ -114,16 +114,6 @@ namespace sensor {
F(" 0/1 (Disables/enables autocalibration)"));
}
//NOTE: should timer deviation be used to adjust measurement_timestep?
void checkTimerDeviation() {
static int32_t previous_measurement_at = 0;
int32_t now = millis();
Serial.print(F("Measurement time offset : "));
Serial.print(now - previous_measurement_at - config::measurement_timestep * 1000);
Serial.println(F(" ms."));
previous_measurement_at = now;
}
bool hasSensorSettled() {
static uint16_t last_co2 = 0;
uint16_t delta;
......@@ -266,7 +256,6 @@ namespace sensor {
bool freshData = scd30.dataAvailable();
if (freshData) {
// checkTimerDeviation();
ntp::getLocalTime(timestamp);
co2 = scd30.getCO2();
temperature = scd30.getTemperature();
......
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