diff --git a/libraries/SI7021/SI7021.cpp b/libraries/SI7021/SI7021.cpp index 2bde080..c51ab6b 100644 --- a/libraries/SI7021/SI7021.cpp +++ b/libraries/SI7021/SI7021.cpp @@ -128,7 +128,7 @@ void SI7021::setHeater(bool on) { // get humidity, then get temperature reading from humidity measurement struct si7021_env SI7021::getHumidityAndTemperature() { si7021_env ret = {0, 0, 0}; - ret.humidityBasisPoints = getHumidityBasisPoints(); + ret.humidityPercent = getHumidityPercent(); ret.celsiusHundredths = _getCelsiusPostHumidity(); ret.fahrenheitHundredths = (1.8 * ret.celsiusHundredths) + 3200; return ret; diff --git a/libraries/SI7021/SI7021.h b/libraries/SI7021/SI7021.h index 5aa9f4b..d577900 100644 --- a/libraries/SI7021/SI7021.h +++ b/libraries/SI7021/SI7021.h @@ -23,7 +23,7 @@ This program is licensed under the GNU GPL v2 typedef struct si7021_env { int celsiusHundredths; int fahrenheitHundredths; - unsigned int humidityBasisPoints; + unsigned int humidityPercent; } si7021_env; class SI7021