From d4134e69015f4f2f3d6f65eda62d0286ecd768ae Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 22 Jun 2016 17:48:41 -0700 Subject: [PATCH] Define Z_SAFE_HOMING point when Z_PROBE_SLED is activated alone --- Marlin/Conditionals.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Marlin/Conditionals.h b/Marlin/Conditionals.h index b1ddcdc24..c1db34cb1 100644 --- a/Marlin/Conditionals.h +++ b/Marlin/Conditionals.h @@ -378,12 +378,24 @@ #define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0) /** - * Sled Options + * Z Sled Probe requires Z_SAFE_HOMING */ #if ENABLED(Z_PROBE_SLED) #define Z_SAFE_HOMING #endif + /** + * Safe Homing Options + */ + #if ENABLED(Z_SAFE_HOMING) + #ifndef Z_SAFE_HOMING_X_POINT + #define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) + #endif + #ifndef Z_SAFE_HOMING_Y_POINT + #define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) + #endif + #endif + /** * Host keep alive */