mirror of
https://github.com/revspace/operame
synced 2024-12-04 21:57:30 +00:00
Document special-case return values
Thanks, supakeen! Additional thought: should maybe be an enum
This commit is contained in:
parent
7be2c6368c
commit
14f917b84f
@ -385,6 +385,8 @@ int mhz_get_co2() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int get_co2() {
|
int get_co2() {
|
||||||
|
// <0 means read error, 0 means still initializing, >0 is PPM value
|
||||||
|
|
||||||
if (driver == AQC) return aqc_get_co2();
|
if (driver == AQC) return aqc_get_co2();
|
||||||
if (driver == MHZ) return mhz_get_co2();
|
if (driver == MHZ) return mhz_get_co2();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user