Watchdog timer
After uploading this sketch what i find Zigduino did not support WDT
Is this is due to it's bootloader configuration.
#include <avr/wdt.h>
void setup ()
{
MCUSR=0;
wdt_enable(WDTO_8S);
Serial.begin (9600);
Serial.println ("Restarted.");
// setup Watch Dog Timer to 8 sec
// reset after one second, if no "pat the dog" received
} // end of setup
void loop ()
{
Serial.println ("Entered loop ...");
wdt_reset (); // give me another second to do stuff (pat the dog)
while (true) ; // oops, went into a loop
} // end of loop
Same sketch works perfect on uno