Automatic recovery after crash is detected
This commit is contained in:
parent
a4a90aa9ed
commit
5ff28682be
3 changed files with 61 additions and 50 deletions
|
@ -76,6 +76,9 @@ const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o
|
|||
|
||||
#define Z_AXIS_ALWAYS_ON 1
|
||||
|
||||
// Automatic recovery after crash is detected
|
||||
#define AUTOMATIC_RECOVERY_AFTER_CRASH
|
||||
|
||||
//DEBUG
|
||||
#define DEBUG_DCODES //D codes
|
||||
#if 1
|
||||
|
|
|
@ -5844,7 +5844,11 @@ case 404: //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
|
|||
lcd_update_enable(true);
|
||||
lcd_implementation_clear();
|
||||
lcd_update(2);
|
||||
bool yesno = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_CRASH_DETECTED, false);
|
||||
#ifdef AUTOMATIC_RECOVERY_AFTER_CRASH
|
||||
bool yesno = true;
|
||||
#else
|
||||
bool yesno = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_CRASH_DETECTED, false);
|
||||
#endif
|
||||
lcd_update_enable(true);
|
||||
lcd_update(2);
|
||||
lcd_setstatuspgm(WELCOME_MSG);
|
||||
|
|
|
@ -1074,6 +1074,10 @@ static void lcd_support_menu()
|
|||
MENU_ITEM(function, PSTR("Check fans [DIS]"), lcd_set_fan_check);
|
||||
}
|
||||
#endif //MK1BP
|
||||
|
||||
#ifdef AUTOMATIC_RECOVERY_AFTER_CRASH
|
||||
MENU_ITEM(back, PSTR("Auto recover crash"), lcd_main_menu);
|
||||
#else
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue