|
|
@ -8199,13 +8199,17 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void kill(const char* lcd_msg) {
|
|
|
|
void kill(const char* lcd_msg) {
|
|
|
|
|
|
|
|
SERIAL_ERROR_START;
|
|
|
|
|
|
|
|
SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(ULTRA_LCD)
|
|
|
|
#if ENABLED(ULTRA_LCD)
|
|
|
|
lcd_init();
|
|
|
|
kill_screen(lcd_msg);
|
|
|
|
lcd_setalertstatuspgm(lcd_msg);
|
|
|
|
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
UNUSED(lcd_msg);
|
|
|
|
UNUSED(lcd_msg);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 5; i--;) delay(100); // Wait a short time
|
|
|
|
|
|
|
|
|
|
|
|
cli(); // Stop interrupts
|
|
|
|
cli(); // Stop interrupts
|
|
|
|
thermalManager.disable_all_heaters();
|
|
|
|
thermalManager.disable_all_heaters();
|
|
|
|
disable_all_steppers();
|
|
|
|
disable_all_steppers();
|
|
|
@ -8214,13 +8218,6 @@ void kill(const char* lcd_msg) {
|
|
|
|
pinMode(PS_ON_PIN, INPUT);
|
|
|
|
pinMode(PS_ON_PIN, INPUT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
SERIAL_ERROR_START;
|
|
|
|
|
|
|
|
SERIAL_ERRORLNPGM(MSG_ERR_KILLED);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FMC small patch to update the LCD before ending
|
|
|
|
|
|
|
|
sei(); // enable interrupts
|
|
|
|
|
|
|
|
for (int i = 5; i--; lcd_update()) delay(200); // Wait a short time
|
|
|
|
|
|
|
|
cli(); // disable interrupts
|
|
|
|
|
|
|
|
suicide();
|
|
|
|
suicide();
|
|
|
|
while (1) {
|
|
|
|
while (1) {
|
|
|
|
#if ENABLED(USE_WATCHDOG)
|
|
|
|
#if ENABLED(USE_WATCHDOG)
|
|
|
|