diff options
Diffstat (limited to 'src/atsamd/watchdog.c')
-rw-r--r-- | src/atsamd/watchdog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atsamd/watchdog.c b/src/atsamd/watchdog.c index aacf8fb7..9e11c279 100644 --- a/src/atsamd/watchdog.c +++ b/src/atsamd/watchdog.c @@ -10,7 +10,8 @@ void watchdog_reset(void) { - WDT->CLEAR.reg = 0xa5; + if (!(WDT->STATUS.reg & WDT_STATUS_SYNCBUSY)) + WDT->CLEAR.reg = 0xa5; } DECL_TASK(watchdog_reset); |