mirror of https://github.com/arendst/Tasmota.git
v5.7.1b - Add timeout to some sensors
5.7.1b * Add timeout to DHT and DS18B20 sensors (#852)
This commit is contained in:
parent
105c5d7129
commit
bef489b006
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue