mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +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 {
|
||||
delayMicroseconds(800);
|
||||
}
|
||||
this->pin_->pin_mode(gpio::FLAG_INPUT | gpio::FLAG_PULLUP);
|
||||
this->pin_->pin_mode(gpio::FLAG_INPUT);
|
||||
|
||||
{
|
||||
InterruptLock lock;
|
||||
|
|
Loading…
Reference in a new issue