diff --git a/xboot.c b/xboot.c index ebedb66..3b79a58 100644 --- a/xboot.c +++ b/xboot.c @@ -309,7 +309,7 @@ int main(void) #ifndef __AVR_XMEGA__ // ATMEGA must reset via watchdog, so turn it off - MCUSR = 0; + MCUSR &= ~(1 << WDRF); wdt_disable(); #endif