Fix DHT11 not reading any values

This commit is contained in:
minomy13 2024-11-11 23:00:30 +01:00
parent a2dccc4730
commit 692fbb5c75
No known key found for this signature in database

View file

@ -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;