Watchdog Timer

Related to the development libraries, released by Curt Binder
Post Reply
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Watchdog Timer

Post by agentgreen »

My controller has been locking up on me the last couple of days, and I read about the watchdog timer that will reboot the controller if the timer hasn't been updated in a while (or something :) )

I've defined WDT in my ReefAngelFeatures.h file, is there anything else I need to do in order for this to work?

Thanks!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Watchdog Timer

Post by rimai »

This is it.
Just add

Code: Select all

#define WDT
It works on the new optiboot bootloader only.
Roberto.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Watchdog Timer

Post by agentgreen »

rimai wrote:This is it.
Just add

Code: Select all

#define WDT
It works on the new optiboot bootloader only.
Cool, thanks.
Post Reply