Fix plugins for ESP32 calling pinMode often #4165
Labels
Category: Plugin
Related to supported sensors
Category: Stabiliy
Things that work, but not as long as desired
Platform: ESP32-S2
ESP32-S2 Specific
Platform: ESP32
ESP32 classic and ESP32-xx based devices
The Dallas plugins were reported to no longer work since ESP32 SDK 2.0.3. (see: #4164 )
Apparently the time needed to switch pin mode now takes 16 usec instead of 4 usec it was before.
Since the 1Wire protocol needs to toggle quite often between input and output mode on the same GPIO, this really makes a difference.
There are probably more plugins suffering from the same issues.
Plugins to test/check:
Fixes: #4026
Fixes: #2745
The text was updated successfully, but these errors were encountered: