From dd94d0b9d506bee425552c9dd826458aa74e917e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 28 Aug 2016 19:00:25 -0500 Subject: [PATCH] Fix bed probing bug without PROBE_DOUBLE_TOUCH If `PROBE_DOUBLE_TOUCH` wasn't enabled, the probe move could be way too short! See #4701 for example. --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 37a27eac86..aeafe4aad0 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2179,7 +2179,7 @@ static void clean_up_after_endstop_or_probe_move() { #endif // move down slowly to find bed - do_probe_move(-10, Z_PROBE_SPEED_SLOW); + do_probe_move(-(Z_MAX_LENGTH) - 10, Z_PROBE_SPEED_SLOW); #if ENABLED(DEBUG_LEVELING_FEATURE) if (DEBUGGING(LEVELING)) DEBUG_POS("<<< run_z_probe", current_position);