Watchdog timer
Development
9
Posts
4
Posters
2.0k
Views
4
Watching
-
How do I add a watchdog timer to my motion sensor sketch?
I can get an example watchdog timer sketch to work, and it resets if wdt is not rest in the loop, but I cannot get it work in the motion sensor sketch. -
Hi,
In MySensors:
- if you use deep power down, sleep() without time, it doesn't use watchdog, and can be waken up by a pin interrupt only.
- if you use sleep(ms) it uses watchdog.
- during runtime, watchdog is enabled, and it resets at each loop().