fix event var

This commit is contained in:
lukas 2020-08-22 12:35:43 +02:00
parent 3d7a87f4b8
commit d036201313

View File

@ -20,7 +20,7 @@ double Temperature::getTemp() {
}
double Temperature::getHum() {
// Get humidity event and print its value.
sensors_event_t event;
dht.humidity().getEvent(&event);
if (isnan(event.relative_humidity)) {
return -1;