瀏覽代碼

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

daid303 12 年之前
父節點
當前提交
e6c1cadea0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      Marlin/watchdog.cpp

+ 3
- 3
Marlin/watchdog.cpp 查看文件

@@ -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…
取消
儲存