IDEX clean up (#11690)
This commit is contained in:
@ -188,7 +188,7 @@
|
||||
#define MSG_EDITING_STOPPED _UxGT("Mesh Editing Stopped")
|
||||
#endif
|
||||
#ifndef MSG_USER_MENU
|
||||
#define MSG_USER_MENU _UxGT("Custom Commands")
|
||||
#define MSG_USER_MENU _UxGT("Custom User Commands")
|
||||
#endif
|
||||
#ifndef MSG_UBL_DOING_G29
|
||||
#define MSG_UBL_DOING_G29 _UxGT("Doing G29")
|
||||
@ -202,6 +202,18 @@
|
||||
#ifndef MSG_UBL_LEVEL_BED
|
||||
#define MSG_UBL_LEVEL_BED _UxGT("Unified Bed Leveling")
|
||||
#endif
|
||||
#ifndef MSG_IDEX_MENU
|
||||
#define MSG_IDEX_MENU _UxGT("IDEX Mode Selection")
|
||||
#endif
|
||||
#ifndef MSG_IDEX_MODE_AUTOPARK
|
||||
#define MSG_IDEX_MODE_AUTOPARK _UxGT("DXC Auto-Park mode")
|
||||
#endif
|
||||
#ifndef MSG_IDEX_MODE_DUPLICATE
|
||||
#define MSG_IDEX_MODE_DUPLICATE _UxGT("DXC Duplication mode")
|
||||
#endif
|
||||
#ifndef MSG_IDEX_MODE_FULL_CTRL
|
||||
#define MSG_IDEX_MODE_FULL_CTRL _UxGT("DXC Full control mode")
|
||||
#endif
|
||||
#ifndef MSG_UBL_MANUAL_MESH
|
||||
#define MSG_UBL_MANUAL_MESH _UxGT("Manually Build Mesh")
|
||||
#endif
|
||||
|
@ -1030,6 +1030,23 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
||||
|
||||
#endif // HAS_DEBUG_MENU
|
||||
|
||||
/**
|
||||
* IDEX submenu
|
||||
*/
|
||||
#if ENABLED(DUAL_X_CARRIAGE)
|
||||
static void IDEX_menu() {
|
||||
START_MENU();
|
||||
MENU_BACK(MSG_MAIN);
|
||||
MENU_ITEM(gcode, MSG_IDEX_MODE_AUTOPARK, PSTR("M605 S1\nG28 X\nG1 X100\n"));
|
||||
if (!TEST(axis_known_position, Y_AXIS) || !TEST(axis_known_position, Z_AXIS))
|
||||
MENU_ITEM(gcode, MSG_IDEX_MODE_DUPLICATE, PSTR("T0\nG28\nM605 S2 X200\nG28 X\nG1 X100\n")); // If Y or Z is not homed, a full G28 is done first.
|
||||
else
|
||||
MENU_ITEM(gcode, MSG_IDEX_MODE_DUPLICATE, PSTR("T0\nM605 S2 X200\nG28 X\nG1 X100\n")); // If Y and Z is homed, a full G28 is not needed first.
|
||||
MENU_ITEM(gcode, MSG_IDEX_MODE_FULL_CTRL, PSTR("M605 S0\nG28 X\n"));
|
||||
END_MENU();
|
||||
}
|
||||
#endif // DUAL_X_CARRIAGE
|
||||
|
||||
#if ENABLED(CUSTOM_USER_MENUS)
|
||||
|
||||
#ifdef USER_SCRIPT_DONE
|
||||
@ -1107,6 +1124,10 @@ void lcd_quick_feedback(const bool clear_buttons) {
|
||||
MENU_ITEM(submenu, MSG_USER_MENU, _lcd_user_menu);
|
||||
#endif
|
||||
|
||||
#if ENABLED(DUAL_X_CARRIAGE)
|
||||
MENU_ITEM(submenu, MSG_IDEX_MENU, IDEX_menu);
|
||||
#endif
|
||||
|
||||
//
|
||||
// Debug Menu when certain options are enabled
|
||||
//
|
||||
|
Reference in New Issue
Block a user