Hi all, I have been using a DHT22 module with WLED 15.3 custom build. However when I try the same build flags on anything >15.3, I can not get the DHT module to initialize properly and after the first readout timer runs out it just says next read time : 4294936 seconds later. No modules changed, no pins changed. The module is confirmed to be working with arduino IDE and WLED 15.3. The problem only arises when below flags are applied to newer versions.
[env:esp32DHT]
extends = env:esp32dev
custom_usermods = DHT
upload_speed = 115200
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} ${esp32.build_flags}
-DUSERMOD_DHT
-D USERMOD_DHT_PIN=13
-DUSERMOD_DHT_STATS
-D USERMOD_DHT_FIRST_MEASUREMENT_AT=15000
-D USERMOD_DHT_DHTTYPE=22
-DUSERMOD_DHT_CELSIUS
-DUSERMOD_DHT_MQTT
-DWLED_DISABLE_ALEXA
-D LEDPIN=4
-DWLED_ENABLE_MQTT
-DWLED_DISABLE_HUESYNC
-DWLED_DISABLE_INFRARED
-DWLED_DISABLE_LOXONE
-DWLED_USE_MY_CONFIG ;(has only network ssid and pass in it.)
Any ideas or help would be much appreciated, thanks.