Skip to content

Commit

Permalink
Define Z_SAFE_HOMING point when Z_PROBE_SLED is activated alone
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 23, 2016
1 parent 7b2fadd commit d4134e6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Marlin/Conditionals.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit d4134e6

Please sign in to comment.