Use do_blocking_move_to where possible
This commit is contained in:
parent
3293823642
commit
df44bcc5ae
2 changed files with 9 additions and 27 deletions
|
|
@ -2414,17 +2414,8 @@ static void clean_up_after_endstop_or_probe_move() {
|
|||
: !position_is_reachable_by_probe(rx, ry)
|
||||
) return NAN;
|
||||
|
||||
const float old_feedrate_mm_s = feedrate_mm_s;
|
||||
|
||||
#if ENABLED(DELTA)
|
||||
if (current_position[Z_AXIS] > delta_clip_start_height)
|
||||
do_blocking_move_to_z(delta_clip_start_height);
|
||||
#endif
|
||||
|
||||
feedrate_mm_s = XY_PROBE_FEEDRATE_MM_S;
|
||||
|
||||
// Move the probe to the given XY
|
||||
do_blocking_move_to_xy(nx, ny);
|
||||
do_blocking_move_to_xy(nx, ny, XY_PROBE_FEEDRATE_MM_S);
|
||||
|
||||
float measured_z = NAN;
|
||||
if (!DEPLOY_PROBE()) {
|
||||
|
|
@ -2450,8 +2441,6 @@ static void clean_up_after_endstop_or_probe_move() {
|
|||
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< probe_pt");
|
||||
#endif
|
||||
|
||||
feedrate_mm_s = old_feedrate_mm_s;
|
||||
|
||||
if (isnan(measured_z)) {
|
||||
LCD_MESSAGEPGM(MSG_ERR_PROBING_FAILED);
|
||||
SERIAL_ERROR_START();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue