Browse Source

Better EEPROM alert message

Scott Lahteine 4 years ago
parent
commit
71b41c963b
2 changed files with 6 additions and 2 deletions
  1. 5
    1
      Marlin/src/lcd/menu/menu.cpp
  2. 1
    1
      Marlin/src/lcd/ultralcd.cpp

+ 5
- 1
Marlin/src/lcd/menu/menu.cpp View File

@@ -402,7 +402,11 @@ bool MarlinUI::update_selection() {
402 402
   return selection;
403 403
 }
404 404
 
405
-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*/) {
405
+void MenuItem_confirm::select_screen(
406
+  PGM_P const yes, PGM_P const no,
407
+  selectFunc_t yesFunc, selectFunc_t noFunc,
408
+  PGM_P const pref, const char * const string/*=nullptr*/, PGM_P const suff/*=nullptr*/
409
+) {
406 410
   const bool ui_selection = ui.update_selection(), got_click = ui.use_click();
407 411
   if (got_click || ui.should_draw()) {
408 412
     draw_select_screen(yes, no, ui_selection, pref, string, suff);

+ 1
- 1
Marlin/src/lcd/ultralcd.cpp View File

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

Loading…
Cancel
Save