Better EEPROM alert message

2.0.x
Scott Lahteine 5 years ago
parent 52aa459a2d
commit 71b41c963b

@ -402,7 +402,11 @@ bool MarlinUI::update_selection() {
return selection; return selection;
} }
void MenuItem_confirm::select_screen(PGM_P const yes, PGM_P const no, selectFunc_t yesFunc, selectFunc_t noFunc, PGM_P const pref, const char * const string/*=nullptr*/, PGM_P const suff/*=nullptr*/) { void MenuItem_confirm::select_screen(
PGM_P const yes, PGM_P const no,
selectFunc_t yesFunc, selectFunc_t noFunc,
PGM_P const pref, const char * const string/*=nullptr*/, PGM_P const suff/*=nullptr*/
) {
const bool ui_selection = ui.update_selection(), got_click = ui.use_click(); const bool ui_selection = ui.update_selection(), got_click = ui.use_click();
if (got_click || ui.should_draw()) { if (got_click || ui.should_draw()) {
draw_select_screen(yes, no, ui_selection, pref, string, suff); draw_select_screen(yes, no, ui_selection, pref, string, suff);

@ -1540,7 +1540,7 @@ void MarlinUI::update() {
#if HAS_LCD_MENU #if HAS_LCD_MENU
editable.uint8 = msgid; editable.uint8 = msgid;
goto_screen([]{ goto_screen([]{
PGM_P const restore_msg = GET_TEXT(MSG_RESTORE_DEFAULTS); PGM_P const restore_msg = GET_TEXT(MSG_INIT_EEPROM);
char msg[utf8_strlen_P(restore_msg) + 1]; char msg[utf8_strlen_P(restore_msg) + 1];
strcpy_P(msg, restore_msg); strcpy_P(msg, restore_msg);
MenuItem_confirm::select_screen( MenuItem_confirm::select_screen(

Loading…
Cancel
Save