|
@@ -3998,10 +3998,10 @@ void home_all_axes() { gcode_G28(true); }
|
3998
|
3998
|
|
3999
|
3999
|
inline void _manual_goto_xy(const float &x, const float &y) {
|
4000
|
4000
|
const float old_feedrate_mm_s = feedrate_mm_s;
|
4001
|
|
-
|
4002
|
4001
|
#if MANUAL_PROBE_HEIGHT > 0
|
|
4002
|
+ const float prev_z = current_position[Z_AXIS];
|
4003
|
4003
|
feedrate_mm_s = homing_feedrate(Z_AXIS);
|
4004
|
|
- current_position[Z_AXIS] = LOGICAL_Z_POSITION(Z_MIN_POS) + MANUAL_PROBE_HEIGHT;
|
|
4004
|
+ current_position[Z_AXIS] = LOGICAL_Z_POSITION(MANUAL_PROBE_HEIGHT);
|
4005
|
4005
|
line_to_current_position();
|
4006
|
4006
|
#endif
|
4007
|
4007
|
|
|
@@ -4012,7 +4012,7 @@ void home_all_axes() { gcode_G28(true); }
|
4012
|
4012
|
|
4013
|
4013
|
#if MANUAL_PROBE_HEIGHT > 0
|
4014
|
4014
|
feedrate_mm_s = homing_feedrate(Z_AXIS);
|
4015
|
|
- current_position[Z_AXIS] = LOGICAL_Z_POSITION(Z_MIN_POS); // just slightly over the bed
|
|
4015
|
+ current_position[Z_AXIS] = prev_z; // move back to the previous Z.
|
4016
|
4016
|
line_to_current_position();
|
4017
|
4017
|
#endif
|
4018
|
4018
|
|