javos65 / WDTZero

Allows to use the WatchDog functionality for Arduino Zero, MKRZero and MKR1000 only
15 stars 12 forks source link

Non-blocking clear() and reboot() method #8

Open SokoFromNZ opened 3 years ago

SokoFromNZ commented 3 years ago

Hi,

While researching for a watchdog implementation for my MKR Zero I've found your library. Great work! I've also found this post: https://hackaday.io/project/20647-mightywatt-r3-70w-electronic-load-for-arduino/log/56143-found-and-fixed-a-bug-in-sketch-for-arduino-zero

I've implemented this non-blocking clear of the watch dog.

In addition I'm in need for a reboot() (software reset) method. So I moved the reset you do when the Software EWT hits to a separate method WDT_ForceShutdown which gets called now from the original spot as well as from the new reboot method.

Do you see any issues?

Soko