Skip to content

Commit a11319c

Browse files
committed
Add humidityCompensation() into the hackAIR class
1 parent d56a097 commit a11319c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hackair.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void hackAIR::turnOff() {
207207

208208
// Normalization function written by Zbyszek Kiliański, Piotr Paul
209209
// https://github.com/piotrkpaul/esp8266-sds011
210-
void humidityCompensation(hackAirData &data, float humidity) {
210+
void hackAIR::humidityCompensation(hackAirData &data, float humidity) {
211211
data.pm25 = data.pm25 / (1.0 + 0.48756 * pow((humidity / 100.0), 8.60068));
212212
data.pm10 = data.pm10 / (1.0 + 0.81559 * pow((humidity / 100.0), 5.83411));
213213
}

0 commit comments

Comments
 (0)