From 6182df2726f3b405ea0ada98e605555f8ef2530f Mon Sep 17 00:00:00 2001 From: AlfaBravoX <11148591+AlfaBravoX@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:35:17 +0200 Subject: [PATCH] Update xsns_06_dht.ino as per https://github.com/arendst/Tasmota/issues/12180 adjusting slightly timers --- tasmota/xsns_06_dht.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xsns_06_dht.ino b/tasmota/xsns_06_dht.ino index 9a7e9e048..a022eb410 100644 --- a/tasmota/xsns_06_dht.ino +++ b/tasmota/xsns_06_dht.ino @@ -97,7 +97,7 @@ bool DhtRead(uint32_t sensor) delayMicroseconds(50); break; case GPIO_SI7021: // iTead SI7021 - delayMicroseconds(20); // See: https://github.com/letscontrolit/ESPEasy/issues/1798 + delayMicroseconds(30); // See: https://github.com/letscontrolit/ESPEasy/issues/1798 and https://github.com/arendst/Tasmota/issues/12180 break; } @@ -136,7 +136,7 @@ bool DhtRead(uint32_t sensor) if (DhtWaitState(sensor, 0) && DhtWaitState(sensor, 1) && DhtWaitState(sensor, 0)) { for (i = 0; i < 40; i++) { if (!DhtWaitState(sensor, 1)) { break; } - delayMicroseconds(35); // Was 30 + delayMicroseconds(32); // Was 30 if (digitalRead(Dht[sensor].pin)) { dht_data[i / 8] |= (1 << (7 - i % 8)); }