Disable move to center when homing z axis

This commit is contained in:
Thomas Basler 2020-02-22 15:09:07 +01:00
parent df96e3121e
commit cd3b57ff00

View File

@ -122,6 +122,7 @@
/**
* Move the Z probe (or just the nozzle) to the safe homing point
* (Z is already at the right height)
* Home at current position if CNC Router
*/
constexpr xy_float_t safe_homing_xy = { Z_SAFE_HOMING_X_POINT, Z_SAFE_HOMING_Y_POINT };
#if HAS_HOME_OFFSET
@ -131,7 +132,9 @@
constexpr xy_float_t okay_homing_xy = safe_homing_xy;
#endif
destination.set(okay_homing_xy, current_position.z);
#if DISABLED(IS_CNC_ROUTER)
destination.set(okay_homing_xy, current_position.z);
#endif
TERN_(HOMING_Z_WITH_PROBE, destination -= probe.offset_xy);