Skip to content

Commit 083ae01

Browse files
authored
getCO2Raw returns an int, don't make it a float (#17)
1 parent cc14311 commit 083ae01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/MHZ19.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int MHZ19::getCO2(bool isunLimited, bool force)
177177
return 0;
178178
}
179179

180-
float MHZ19::getCO2Raw(bool force)
180+
int MHZ19::getCO2Raw(bool force)
181181
{
182182
if (force == true)
183183
provisioning(RAWCO2);

src/MHZ19.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class MHZ19
7171
int getCO2(bool isunLimited = true, bool force = true);
7272

7373
/* returns the "raw" CO2 value of unknown units */
74-
float getCO2Raw(bool force = true);
74+
int getCO2Raw(bool force = true);
7575

7676
/* returns Raw CO2 value as a % of transmittance */ //<--- needs work to understand
7777
float getTransmittance(bool force = true);

0 commit comments

Comments
 (0)