v5.7.1b - Add timeout to some sensors

5.7.1b
 * Add timeout to DHT and DS18B20 sensors (#852)
This commit is contained in:
arendst 2017-09-10 17:27:56 +02:00
parent 105c5d7129
commit bef489b006
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ void dht_init()
for (byte i = 0; i < dht_sensors; i++) {
pinMode(dht[i].pin, INPUT_PULLUP);
dht[i].lastreadtime -= MIN_INTERVAL;
dht[i].lastreadtime = 0;
dht[i].lastresult = 0;
switch (dht[i].type) {
case GPIO_DHT11: