Update menu_configuration.cpp

Add custom menus to 'Configuration Menu'.
This commit is contained in:
borland1 2020-06-01 16:48:51 -07:00 committed by GitHub
parent a349b25b65
commit ba5a62a838
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,6 +349,10 @@ void menu_configuration() {
START_MENU(); START_MENU();
BACK_ITEM(MSG_MAIN); BACK_ITEM(MSG_MAIN);
#if ENABLED(CUSTOM_MENUS_CONFIGURATION)
void custom_menus_configuration();
#endif
// //
// Debug Menu when certain options are enabled // Debug Menu when certain options are enabled
// //
@ -356,6 +360,14 @@ void menu_configuration() {
SUBMENU(MSG_DEBUG_MENU, menu_debug); SUBMENU(MSG_DEBUG_MENU, menu_debug);
#endif #endif
#if ENABLED(CUSTOM_MENUS_CONFIGURATION)
#ifdef CUSTOM_MENUS_CONFIGURATION_TITLE
SUBMENU_P(PSTR(CUSTOM_MENUS_CONFIGURATION_TITLE), custom_menus_configuration);
#else
SUBMENU(MSG_CUSTOM_MENUS_CONFIGURATION, custom_menus_configuration);
#endif
#endif
SUBMENU(MSG_ADVANCED_SETTINGS, menu_advanced_settings); SUBMENU(MSG_ADVANCED_SETTINGS, menu_advanced_settings);
#if ENABLED(BABYSTEP_ZPROBE_OFFSET) #if ENABLED(BABYSTEP_ZPROBE_OFFSET)