Skip to content

Commit 3133a7b

Browse files
committed
Updated library to use getHumidityPercentage, instead of getHumidityBasisPoints() in combined humidity/temperature reader
1 parent c3eb970 commit 3133a7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/SI7021/SI7021.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void SI7021::setHeater(bool on) {
128128
// get humidity, then get temperature reading from humidity measurement
129129
struct si7021_env SI7021::getHumidityAndTemperature() {
130130
si7021_env ret = {0, 0, 0};
131-
ret.humidityBasisPoints = getHumidityBasisPoints();
131+
ret.humidityPercent = getHumidityPercent();
132132
ret.celsiusHundredths = _getCelsiusPostHumidity();
133133
ret.fahrenheitHundredths = (1.8 * ret.celsiusHundredths) + 3200;
134134
return ret;

libraries/SI7021/SI7021.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This program is licensed under the GNU GPL v2
2323
typedef struct si7021_env {
2424
int celsiusHundredths;
2525
int fahrenheitHundredths;
26-
unsigned int humidityBasisPoints;
26+
unsigned int humidityPercent;
2727
} si7021_env;
2828

2929
class SI7021

0 commit comments

Comments
 (0)