Commit Graph

4 Commits

Author SHA1 Message Date
Stefan Tibus 5ef4508618 Clean-up use of `duringMeasurement` flag
- remove obsolete integer `duringMeasurement`
- change boolean `DuringMeasurement` to lower case
- replace integer assignments with boolean assignments
2022-04-13 10:29:00 +02:00
Stefan Tibus 31bbea7502 Remove declaration of unused `co2AvgExtra` 2022-04-13 00:32:28 +02:00
Stefan Tibus 94e2c2f9da Fix early return in `startLowPowerPeriodicMeasurement`
In method `FrogMoreScd40::startLowPowerPeriodicMeasurement` the `return`
statement appeared before the update of the `DuringMeasurement` flag.
Thus, the class would wrongly assume not be in measurement mode and a
subsequent `stopPeriodicMeasurement` would fail. Moved the `return`
statement to after setting the flag.
2022-04-13 00:15:47 +02:00
Arnold Niessen 0fea60d8ee Add SCD40/41 support 2021-09-15 12:02:27 +02:00