Browse Source

Define Z_SAFE_HOMING point when Z_PROBE_SLED is activated alone

Scott Lahteine 9 years ago
parent
commit
d4134e6901
1 changed files with 13 additions and 1 deletions
  1. 13
    1
      Marlin/Conditionals.h

+ 13
- 1
Marlin/Conditionals.h View File

378
   #define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0)
378
   #define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0)
379
 
379
 
380
   /**
380
   /**
381
-   * Sled Options
381
+   * Z Sled Probe requires Z_SAFE_HOMING
382
    */
382
    */
383
   #if ENABLED(Z_PROBE_SLED)
383
   #if ENABLED(Z_PROBE_SLED)
384
     #define Z_SAFE_HOMING
384
     #define Z_SAFE_HOMING
385
   #endif
385
   #endif
386
 
386
 
387
   /**
387
   /**
388
+   * Safe Homing Options
389
+   */
390
+  #if ENABLED(Z_SAFE_HOMING)
391
+    #ifndef Z_SAFE_HOMING_X_POINT
392
+      #define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2)
393
+    #endif
394
+    #ifndef Z_SAFE_HOMING_Y_POINT
395
+      #define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2)
396
+    #endif
397
+  #endif
398
+
399
+  /**
388
    * Host keep alive
400
    * Host keep alive
389
    */
401
    */
390
   #ifndef DEFAULT_KEEPALIVE_INTERVAL
402
   #ifndef DEFAULT_KEEPALIVE_INTERVAL

Loading…
Cancel
Save