|
@@ -4077,10 +4077,10 @@ void home_all_axes() { gcode_G28(true); }
|
4077
|
4077
|
|
4078
|
4078
|
inline void _manual_goto_xy(const float &x, const float &y) {
|
4079
|
4079
|
const float old_feedrate_mm_s = feedrate_mm_s;
|
4080
|
|
-
|
4081
|
4080
|
#if MANUAL_PROBE_HEIGHT > 0
|
|
4081
|
+ const float prev_z = current_position[Z_AXIS];
|
4082
|
4082
|
feedrate_mm_s = homing_feedrate(Z_AXIS);
|
4083
|
|
- current_position[Z_AXIS] = LOGICAL_Z_POSITION(Z_MIN_POS) + MANUAL_PROBE_HEIGHT;
|
|
4083
|
+ current_position[Z_AXIS] = LOGICAL_Z_POSITION(MANUAL_PROBE_HEIGHT);
|
4084
|
4084
|
line_to_current_position();
|
4085
|
4085
|
#endif
|
4086
|
4086
|
|
|
@@ -4091,7 +4091,7 @@ void home_all_axes() { gcode_G28(true); }
|
4091
|
4091
|
|
4092
|
4092
|
#if MANUAL_PROBE_HEIGHT > 0
|
4093
|
4093
|
feedrate_mm_s = homing_feedrate(Z_AXIS);
|
4094
|
|
- current_position[Z_AXIS] = LOGICAL_Z_POSITION(Z_MIN_POS); // just slightly over the bed
|
|
4094
|
+ current_position[Z_AXIS] = prev_z; // move back to the previous Z.
|
4095
|
4095
|
line_to_current_position();
|
4096
|
4096
|
#endif
|
4097
|
4097
|
|