Commit 1bc03c7c authored by Käppler's avatar Käppler
Browse files

Remove unneccessary `if` condition

parent 7872da54
......@@ -135,9 +135,7 @@ namespace sensor {
last_co2 = co2;
// We assume the sensor has acclimated to the environment if measurements
// change less than a specified percentage of the current value.
if (co2 > 0 && (100 * delta / config::max_deviation_during_accl) < co2) {
return true;
} else return false;
return (co2 > 0 && (100 * delta / config::max_deviation_during_accl) < co2);
}
bool countStableMeasurements() {
......
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