mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Simplify initial raise in M48
This commit is contained in:
parent
3763d45656
commit
2640d13a9f
@ -4207,8 +4207,7 @@ inline void gcode_M42() {
|
||||
}
|
||||
|
||||
float X_current = current_position[X_AXIS],
|
||||
Y_current = current_position[Y_AXIS],
|
||||
Z_start_location = current_position[Z_AXIS] + Z_RAISE_BEFORE_PROBING;
|
||||
Y_current = current_position[Y_AXIS];
|
||||
|
||||
#if ENABLED(Z_PROBE_SLED) || ENABLED(Z_PROBE_ALLEN_KEY)
|
||||
const bool deploy_probe_for_each_reading = false;
|
||||
@ -4266,10 +4265,7 @@ inline void gcode_M42() {
|
||||
|
||||
setup_for_endstop_or_probe_move();
|
||||
|
||||
if (Z_start_location < Z_RAISE_BEFORE_PROBING * 2.0) {
|
||||
feedrate = homing_feedrate[Z_AXIS];
|
||||
do_blocking_move_to_z(Z_start_location);
|
||||
}
|
||||
do_probe_raise(Z_RAISE_BEFORE_PROBING);
|
||||
|
||||
feedrate = XY_PROBE_FEEDRATE;
|
||||
do_blocking_move_to_xy(X_probe_location - (X_PROBE_OFFSET_FROM_EXTRUDER), Y_probe_location - (Y_PROBE_OFFSET_FROM_EXTRUDER));
|
||||
|
Loading…
Reference in New Issue
Block a user