From 0729a8f08d1ff17459e97d02db9ed4e08c297cc3 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 28 Aug 2016 19:13:08 -0500 Subject: [PATCH] Use the probe travel height for pre-probe move Instead of using the home_bump for Z to move close to the bed before doing a slow probe, use the probe travel height. --- Marlin/Marlin_main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index aeafe4aad0..ac4864c960 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2171,10 +2171,11 @@ static void clean_up_after_endstop_or_probe_move() { #else - // move fast, close to the bed - float z = LOGICAL_Z_POSITION(home_bump_mm(Z_AXIS)); - if (zprobe_zoffset < 0) z -= zprobe_zoffset; - do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST)); + // If the nozzle is above the travel height then + // move down quickly before doing the slow probe + float z = LOGICAL_Z_POSITION(Z_PROBE_TRAVEL_HEIGHT); + if (z < current_position[Z_AXIS]) + do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST)); #endif