|
@@ -15,7 +15,7 @@
|
15
|
15
|
//===========================================================================
|
16
|
16
|
|
17
|
17
|
|
18
|
|
-/// intialise watch dog with a 1 sec interrupt time
|
|
18
|
+/// intialise watch dog with a 4 sec interrupt time
|
19
|
19
|
void watchdog_init()
|
20
|
20
|
{
|
21
|
21
|
#ifdef WATCHDOG_RESET_MANUAL
|
|
@@ -23,9 +23,9 @@ void watchdog_init()
|
23
|
23
|
//Take care, as this requires the correct order of operation, with interrupts disabled. See the datasheet of any AVR chip for details.
|
24
|
24
|
wdt_reset();
|
25
|
25
|
_WD_CONTROL_REG = _BV(_WD_CHANGE_BIT) | _BV(WDE);
|
26
|
|
- _WD_CONTROL_REG = _BV(WDIE) | WDTO_1S;
|
|
26
|
+ _WD_CONTROL_REG = _BV(WDIE) | WDTO_4S;
|
27
|
27
|
#else
|
28
|
|
- wdt_enable(WDTO_1S);
|
|
28
|
+ wdt_enable(WDTO_4S);
|
29
|
29
|
#endif
|
30
|
30
|
}
|
31
|
31
|
|