Browse Source

Set the watchdog to a 4 second timeout, as with 1 second it can timeout during SD card init.

daid303 12 years ago
parent
commit
e6c1cadea0
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/watchdog.cpp

+ 3
- 3
Marlin/watchdog.cpp View File

@@ -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
 

Loading…
Cancel
Save