mirror of
https://github.com/esphome/esphome.git
synced 2026-05-30 15:28:34 +08:00
[dht] Increase delay for DHT22 and RHT03 (#13446)
This commit is contained in:
committed by
Jonathan Swoboda
parent
811ac81320
commit
3c3d5c2fca
@@ -89,10 +89,8 @@ bool HOT IRAM_ATTR DHT::read_sensor_(float *temperature, float *humidity, bool r
|
|||||||
delayMicroseconds(500);
|
delayMicroseconds(500);
|
||||||
} else if (this->model_ == DHT_MODEL_DHT22_TYPE2) {
|
} else if (this->model_ == DHT_MODEL_DHT22_TYPE2) {
|
||||||
delayMicroseconds(2000);
|
delayMicroseconds(2000);
|
||||||
} else if (this->model_ == DHT_MODEL_AM2120 || this->model_ == DHT_MODEL_AM2302) {
|
|
||||||
delayMicroseconds(1000);
|
|
||||||
} else {
|
} else {
|
||||||
delayMicroseconds(800);
|
delayMicroseconds(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_ESP32
|
#ifdef USE_ESP32
|
||||||
|
|||||||
Reference in New Issue
Block a user