mirror of
https://github.com/revspace/operame
synced 2025-12-14 00:16:31 +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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue