From 3830778852b02666ea5b5d92e5ae219cd7495665 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 6 Mar 2017 02:20:31 -0600 Subject: [PATCH] Apply NO_WORKSPACE_OFFSETS to lcd menu --- Marlin/ultralcd.cpp | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 65d8bfb0b..4c89d6445 100755 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -763,14 +763,16 @@ void kill_screen(const char* lcd_msg) { * */ - /** - * Set the home offset based on the current_position - */ - void lcd_set_home_offsets() { - // M428 Command - enqueue_and_echo_commands_P(PSTR("M428")); - lcd_return_to_status(); - } + #if DISABLED(NO_WORKSPACE_OFFSETS) + /** + * Set the home offset based on the current_position + */ + void lcd_set_home_offsets() { + // M428 Command + enqueue_and_echo_commands_P(PSTR("M428")); + lcd_return_to_status(); + } + #endif #if ENABLED(BABYSTEPPING) @@ -1427,11 +1429,13 @@ KeepDrawing: MENU_ITEM(submenu, MSG_LEVEL_BED, lcd_level_bed); #endif - // - // Set Home Offsets - // - MENU_ITEM(function, MSG_SET_HOME_OFFSETS, lcd_set_home_offsets); - //MENU_ITEM(gcode, MSG_SET_ORIGIN, PSTR("G92 X0 Y0 Z0")); + #if DISABLED(NO_WORKSPACE_OFFSETS) + // + // Set Home Offsets + // + MENU_ITEM(function, MSG_SET_HOME_OFFSETS, lcd_set_home_offsets); + //MENU_ITEM(gcode, MSG_SET_ORIGIN, PSTR("G92 X0 Y0 Z0")); + #endif // // Disable Steppers