diff --git a/src/avr/watchdog.c b/src/avr/watchdog.c index f925a8d5..306f2cd8 100644 --- a/src/avr/watchdog.c +++ b/src/avr/watchdog.c @@ -7,6 +7,7 @@ #include // WDT_vect #include // wdt_enable #include "command.h" // shutdown +#include "irq.h" // irq_disable #include "sched.h" // DECL_TASK static uint8_t watchdog_shutdown; @@ -22,7 +23,7 @@ watchdog_reset(void) { wdt_reset(); if (watchdog_shutdown) { - WDTCSR |= 1<