fix event var
This commit is contained in:
parent
3d7a87f4b8
commit
d036201313
@ -20,7 +20,7 @@ double Temperature::getTemp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
double Temperature::getHum() {
|
double Temperature::getHum() {
|
||||||
// Get humidity event and print its value.
|
sensors_event_t event;
|
||||||
dht.humidity().getEvent(&event);
|
dht.humidity().getEvent(&event);
|
||||||
if (isnan(event.relative_humidity)) {
|
if (isnan(event.relative_humidity)) {
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user