|
@@ -2920,22 +2920,20 @@ inline void gcode_G4() {
|
2920
|
2920
|
destination[Y_AXIS] = LOGICAL_Y_POSITION(Z_SAFE_HOMING_Y_POINT);
|
2921
|
2921
|
destination[Z_AXIS] = current_position[Z_AXIS]; // Z is already at the right height
|
2922
|
2922
|
|
2923
|
|
- #if HAS_BED_PROBE
|
2924
|
|
- destination[X_AXIS] -= X_PROBE_OFFSET_FROM_EXTRUDER;
|
2925
|
|
- destination[Y_AXIS] -= Y_PROBE_OFFSET_FROM_EXTRUDER;
|
2926
|
|
- #endif
|
2927
|
|
-
|
2928
|
|
- #if ENABLED(DEBUG_LEVELING_FEATURE)
|
2929
|
|
- if (DEBUGGING(LEVELING)) DEBUG_POS("Z_SAFE_HOMING", destination);
|
2930
|
|
- #endif
|
2931
|
|
-
|
2932
|
2923
|
if (position_is_reachable(
|
2933
|
2924
|
destination
|
2934
|
|
- #if HAS_BED_PROBE
|
|
2925
|
+ #if HOMING_Z_WITH_PROBE
|
2935
|
2926
|
, true
|
2936
|
2927
|
#endif
|
2937
|
2928
|
)
|
2938
|
2929
|
) {
|
|
2930
|
+ #if HOMING_Z_WITH_PROBE
|
|
2931
|
+ destination[X_AXIS] -= X_PROBE_OFFSET_FROM_EXTRUDER;
|
|
2932
|
+ destination[Y_AXIS] -= Y_PROBE_OFFSET_FROM_EXTRUDER;
|
|
2933
|
+ #endif
|
|
2934
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
2935
|
+ if (DEBUGGING(LEVELING)) DEBUG_POS("Z_SAFE_HOMING", destination);
|
|
2936
|
+ #endif
|
2939
|
2937
|
do_blocking_move_to_xy(destination[X_AXIS], destination[Y_AXIS]);
|
2940
|
2938
|
HOMEAXIS(Z);
|
2941
|
2939
|
}
|