mirror of https://github.com/arendst/Tasmota.git
Change delay(2) to delayMicroseconds(2000)
Change delay(2) to delayMicroseconds(2000) and see if it helps (#7568)
This commit is contained in:
parent
428b6dd4ec
commit
252dddef7c
|
@ -77,7 +77,8 @@ bool DhtRead(uint32_t sensor)
|
||||||
delay(19); // minimum 18ms
|
delay(19); // minimum 18ms
|
||||||
break;
|
break;
|
||||||
case GPIO_DHT22: // DHT21, DHT22, AM2301, AM2302, AM2321
|
case GPIO_DHT22: // DHT21, DHT22, AM2301, AM2302, AM2321
|
||||||
delay(2); // minimum 1ms
|
// delay(2); // minimum 1ms
|
||||||
|
delayMicroseconds(2000); // See https://github.com/arendst/Tasmota/pull/7468#issuecomment-647067015
|
||||||
break;
|
break;
|
||||||
case GPIO_SI7021: // iTead SI7021
|
case GPIO_SI7021: // iTead SI7021
|
||||||
delayMicroseconds(500);
|
delayMicroseconds(500);
|
||||||
|
|
Loading…
Reference in New Issue