Update do_select_screen for general use (#13800)
This commit is contained in:
1 parent
63f6ad3fd2
commit
5051909c3c
16 files changed
+144
-123
No files matched your search
@@ -604,16 +604,13 @@ void menu_backlash();
|
||||
|
||||
#include "../../module/configuration_store.h"
|
||||
|
||||
static void lcd_init_eeprom() {
|
||||
ui.completion_feedback(settings.init_eeprom());
|
||||
ui.goto_previous_screen();
|
||||
}
|
||||
|
||||
static void lcd_init_eeprom_confirm() {
|
||||
START_MENU();
|
||||
MENU_BACK(MSG_ADVANCED_SETTINGS);
|
||||
MENU_ITEM(function, MSG_INIT_EEPROM, lcd_init_eeprom);
|
||||
END_MENU();
|
||||
do_select_screen(
|
||||
PSTR(MSG_BUTTON_INIT), PSTR(MSG_BUTTON_CANCEL),
|
||||
[]{ ui.completion_feedback(settings.init_eeprom()); },
|
||||
ui.goto_previous_screen,
|
||||
PSTR(MSG_INIT_EEPROM), NULL, PSTR("?")
|
||||
);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user