Commit 1ccab8b6 authored by Eric Duminil's avatar Eric Duminil
Browse files

co2_sensor: Formatting

parent 186bf9f9
...@@ -133,7 +133,7 @@ namespace sensor { ...@@ -133,7 +133,7 @@ namespace sensor {
last_co2 = co2; last_co2 = co2;
// We assume the sensor has acclimated to the environment if measurements // We assume the sensor has acclimated to the environment if measurements
// change less than a specified percentage of the current value. // change less than a specified percentage of the current value.
return (co2 > 0 && delta < ((uint32_t)co2 * config::max_deviation_during_bootup / 100)); return (co2 > 0 && delta < ((uint32_t) co2 * config::max_deviation_during_bootup / 100));
} }
bool countStableMeasurements() { bool countStableMeasurements() {
...@@ -199,7 +199,9 @@ namespace sensor { ...@@ -199,7 +199,9 @@ namespace sensor {
void switchStateForCurrentPPM() { void switchStateForCurrentPPM() {
if (current_state == BOOTUP) { if (current_state == BOOTUP) {
if (!hasSensorSettled()) return; if (!hasSensorSettled()) {
return;
}
switchState(READY); switchState(READY);
Serial.println(F("Sensor acclimatization finished.")); Serial.println(F("Sensor acclimatization finished."));
Serial.print(F("Setting SCD30 timestep to ")); Serial.print(F("Setting SCD30 timestep to "));
......
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