From 3133a7ba0cf3cc21b9a651b6fb91c171e7ba2840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=B8rch?= Date: Mon, 23 Feb 2015 21:31:22 +0100 Subject: [PATCH] Updated library to use getHumidityPercentage, instead of getHumidityBasisPoints() in combined humidity/temperature reader --- libraries/SI7021/SI7021.cpp | 2 +- libraries/SI7021/SI7021.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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