From d36e950547b2a3766121d1634b30e0750ec24cec Mon Sep 17 00:00:00 2001 From: Scott Lahteine <github@thinkyhead.com> Date: Thu, 29 Mar 2018 17:13:28 -0500 Subject: [PATCH] Temporary workaround for tool-change compile error Pending a more complete solution to tool-change Z deviation. --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 5964a401560..24c1d93b1bb 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -11604,7 +11604,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n hotend_offset[Y_AXIS][tmp_extruder] - hotend_offset[Y_AXIS][active_extruder] }; - #if HAS_MESH + #if HAS_MESH && PLANNER_LEVELING if (planner.leveling_active) { #if ENABLED(DEBUG_LEVELING_FEATURE) @@ -11622,7 +11622,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n #endif } - #endif // HAS_MESH + #endif // HAS_MESH && PLANNER_LEVELING #endif // !HAS_ABL