Only deploy/stow BLTouch for Z axis

This commit is contained in:
Scott Lahteine 2016-09-21 00:54:54 -05:00 committed by GitHub
parent 82b0014f5e
commit 31f03c838a

View file

@ -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) { static void do_homing_move(AxisEnum axis, float where, float fr_mm_s = 0.0) {
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH) #if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
set_bltouch_deployed(true); if (axis == Z_AXIS) set_bltouch_deployed(true);
#endif #endif
current_position[axis] = 0; 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(); stepper.synchronize();
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH) #if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
set_bltouch_deployed(false); if (axis == Z_AXIS) set_bltouch_deployed(false);
#endif #endif
endstops.hit_on_purpose(); endstops.hit_on_purpose();