2

I have a code that is working fine using WatchDog timer to auto reset in case something goes wrong, but now i got a arduino with ATMega328PB, and the old code just don't active the watchdog.

#include <avr/wdt.h>

wdt_enable(WDTO_8S); for(int i = 0; i < 10; i++) { delay(1000); }

This is the code to test, but the reset that should happen just doesn't happen.

In the datasheet say that the watchdog still there to use, but i have no idea how to active it now.

0 Answers0