Include negative Z probe offset in clearance move

This commit is contained in:
Scott Lahteine 2016-10-03 16:18:04 -05:00 committed by GitHub
parent 5c1eb595e6
commit 9485aa8f13

View File

@ -2057,6 +2057,7 @@ static void clean_up_after_endstop_or_probe_move() {
// If the nozzle is above the travel height then
// move down quickly before doing the slow probe
float z = LOGICAL_Z_POSITION(Z_CLEARANCE_BETWEEN_PROBES);
if (zprobe_zoffset < 0) z -= zprobe_zoffset;
if (z < current_position[Z_AXIS])
do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));