Procházet zdrojové kódy

Add Watchdog reset in kill()

Add watchdog reset in the kill loop to simplify recovering.
Blue-Marlin před 9 roky
rodič
revize
b4e5e0f11d
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5
    1
      Marlin/Marlin_main.cpp

+ 5
- 1
Marlin/Marlin_main.cpp Zobrazit soubor

@@ -7115,7 +7115,11 @@ void kill(const char* lcd_msg) {
7115 7115
   for (int i = 5; i--; lcd_update()) delay(200); // Wait a short time
7116 7116
   cli();   // disable interrupts
7117 7117
   suicide();
7118
-  while (1) { /* Intentionally left empty */ } // Wait for reset
7118
+  while (1) {
7119
+	#if ENABLED(USE_WATCHDOG)
7120
+	  watchdog_reset();
7121
+	#endif
7122
+  } // Wait for reset
7119 7123
 }
7120 7124
 
7121 7125
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)

Loading…
Zrušit
Uložit