From 31f03c838aedb796f40d6325f65c3076811111b3 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 21 Sep 2016 00:54:54 -0500 Subject: [PATCH] Only deploy/stow BLTouch for Z axis --- 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 31058d7a06..d533f9db02 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2200,7 +2200,7 @@ static void clean_up_after_endstop_or_probe_move() { static void do_homing_move(AxisEnum axis, float where, float fr_mm_s = 0.0) { #if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH) - set_bltouch_deployed(true); + if (axis == Z_AXIS) set_bltouch_deployed(true); #endif current_position[axis] = 0; @@ -2210,7 +2210,7 @@ static void do_homing_move(AxisEnum axis, float where, float fr_mm_s = 0.0) { stepper.synchronize(); #if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH) - set_bltouch_deployed(false); + if (axis == Z_AXIS) set_bltouch_deployed(false); #endif endstops.hit_on_purpose();