Add confirmation step to Init EEPROM
This commit is contained in:
parent
c869dc9745
commit
604b804125
1 changed files with 18 additions and 1 deletions
|
@ -3004,6 +3004,23 @@ void kill_screen(const char* lcd_msg) {
|
||||||
lcd_completion_feedback();
|
lcd_completion_feedback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ENABLED(EEPROM_SETTINGS)
|
||||||
|
|
||||||
|
static void lcd_init_eeprom() {
|
||||||
|
lcd_factory_settings();
|
||||||
|
settings.save();
|
||||||
|
lcd_goto_previous_menu();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void lcd_init_eeprom_confirm() {
|
||||||
|
START_MENU();
|
||||||
|
MENU_BACK(MSG_CONTROL);
|
||||||
|
MENU_ITEM(function, MSG_INIT_EEPROM, lcd_init_eeprom);
|
||||||
|
END_MENU();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
void lcd_control_menu() {
|
void lcd_control_menu() {
|
||||||
START_MENU();
|
START_MENU();
|
||||||
MENU_BACK(MSG_MAIN);
|
MENU_BACK(MSG_MAIN);
|
||||||
|
@ -3034,7 +3051,7 @@ void kill_screen(const char* lcd_msg) {
|
||||||
#endif
|
#endif
|
||||||
MENU_ITEM(function, MSG_RESTORE_FAILSAFE, lcd_factory_settings);
|
MENU_ITEM(function, MSG_RESTORE_FAILSAFE, lcd_factory_settings);
|
||||||
#if ENABLED(EEPROM_SETTINGS)
|
#if ENABLED(EEPROM_SETTINGS)
|
||||||
MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500"));
|
MENU_ITEM(submenu, MSG_INIT_EEPROM, lcd_init_eeprom_confirm);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
END_MENU();
|
END_MENU();
|
||||||
|
|
Reference in a new issue