From d309a9647d4b7ffb09add4ec486fe23c1682938e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 19 Aug 2016 01:17:56 -0500 Subject: [PATCH] Include probe offset for moving "close to the bed" --- Marlin/Marlin_main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 3d50936dd..aa8e5e21c 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2162,9 +2162,14 @@ static void clean_up_after_endstop_or_probe_move() { // move up by the bump distance do_blocking_move_to_z(current_position[Z_AXIS] + home_bump_mm(Z_AXIS), MMM_TO_MMS(Z_PROBE_SPEED_FAST)); + #else + // move fast, close to the bed - do_blocking_move_to_z(home_bump_mm(Z_AXIS), MMM_TO_MMS(Z_PROBE_SPEED_FAST)); + 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)); + #endif // move down slowly to find bed