1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 22:08:02 +00:00

Merge pull request #3077 from Blue-Marlin/watchdogreset-in-kill

Add Watchdog timer reset in kill()
This commit is contained in:
Scott Lahteine 2016-03-06 16:21:39 -08:00
commit 501f63802a

View File

@ -7157,7 +7157,11 @@ void kill(const char* lcd_msg) {
for (int i = 5; i--; lcd_update()) delay(200); // Wait a short time for (int i = 5; i--; lcd_update()) delay(200); // Wait a short time
cli(); // disable interrupts cli(); // disable interrupts
suicide(); suicide();
while (1) { /* Intentionally left empty */ } // Wait for reset while (1) {
#if ENABLED(USE_WATCHDOG)
watchdog_reset();
#endif
} // Wait for reset
} }
#if ENABLED(FILAMENT_RUNOUT_SENSOR) #if ENABLED(FILAMENT_RUNOUT_SENSOR)