Delta probe height bug solved
This commit is contained in:
parent
004928148c
commit
244f67590e
@ -1828,6 +1828,9 @@ static void clean_up_after_endstop_or_probe_move() {
|
||||
|
||||
float z_dest = LOGICAL_Z_POSITION(z_raise);
|
||||
if (zprobe_zoffset < 0) z_dest -= zprobe_zoffset;
|
||||
#if ENABLED(DELTA)
|
||||
z_dest -= home_offset[Z_AXIS];
|
||||
#endif
|
||||
|
||||
if (z_dest > current_position[Z_AXIS])
|
||||
do_blocking_move_to_z(z_dest);
|
||||
@ -2254,6 +2257,9 @@ static void clean_up_after_endstop_or_probe_move() {
|
||||
// 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 ENABLED(DELTA)
|
||||
z -= home_offset[Z_AXIS];
|
||||
#endif
|
||||
if (z < current_position[Z_AXIS])
|
||||
do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user