Commit 306008d8 authored by Eric Duminil's avatar Eric Duminil
Browse files

TODOs

parent 50013921
...@@ -124,6 +124,9 @@ void loop() { ...@@ -124,6 +124,9 @@ void loop() {
bool freshData = sensor::scd30.dataAvailable(); // Alternative : close to time-step AND dataAvailable, to avoid asking the sensor too often. bool freshData = sensor::scd30.dataAvailable(); // Alternative : close to time-step AND dataAvailable, to avoid asking the sensor too often.
if (freshData) { if (freshData) {
//TODO: Move to co2_sensor.cpp
//TODO: Save count of stable measurements
//TODO: Compare time to previous measurements, check that it's not too far away from config::measurement_interval
sensor::co2 = sensor::scd30.getCO2(); sensor::co2 = sensor::scd30.getCO2();
sensor::temperature = sensor::scd30.getTemperature(); sensor::temperature = sensor::scd30.getTemperature();
sensor::humidity = sensor::scd30.getHumidity(); sensor::humidity = sensor::scd30.getHumidity();
......
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