mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Fix DHT11 not reading any values
This commit is contained in:
parent
a2dccc4730
commit
692fbb5c75
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ bool HOT IRAM_ATTR DHT::read_sensor_(float *temperature, float *humidity, bool r
|
||||||
} else {
|
} else {
|
||||||
delayMicroseconds(800);
|
delayMicroseconds(800);
|
||||||
}
|
}
|
||||||
this->pin_->pin_mode(gpio::FLAG_INPUT | gpio::FLAG_PULLUP);
|
this->pin_->pin_mode(gpio::FLAG_INPUT);
|
||||||
|
|
||||||
{
|
{
|
||||||
InterruptLock lock;
|
InterruptLock lock;
|
||||||
|
|
Loading…
Reference in a new issue