Change delay(2) to delayMicroseconds(2000)

Change delay(2) to delayMicroseconds(2000) and see if it helps (#7568)
This commit is contained in:
Theo Arends 2020-06-22 11:12:46 +02:00
parent 428b6dd4ec
commit 252dddef7c
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ bool DhtRead(uint32_t sensor)
delay(19); // minimum 18ms
break;
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;
case GPIO_SI7021: // iTead SI7021
delayMicroseconds(500);