OpenShock / Firmware

Espressif Firmware for OpenShock, Controlling shock collars via Reverse engineered proprietary Sub-1 GHz Protocols.
GNU Affero General Public License v3.0
26 stars 6 forks source link

Increase WDT during OTA to prevent unwarranted panics #219

Closed nullstalgia closed 3 months ago

nullstalgia commented 3 months ago

Some ESP32-WROOM-32 modules can take a little longer than 5 seconds when getting ready to flash to the firmware partition (but not filesystem, due to it's smaller size).

This extends the watchdog timer to 15 seconds just before clearing and flashing either partition, and resets it back to 5 seconds afterwards.

Thanks to @luvini for helping confirm the fix with their affected chip!