You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it is bad practice to reset the watchdog timer in an ISR some people do it, so in order to be completely bulletproof, this code should disable interrupts.
i.e. add noInterrupts(); just above the wdt_enable() call.