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
1 changed files with 2 additions and 0 deletions

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();