1
0
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:
Juerd Waalboer 2020-12-26 17:35:20 +01:00
parent 7be2c6368c
commit 14f917b84f

View File

@ -385,6 +385,8 @@ int mhz_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 == MHZ) return mhz_get_co2();