浏览代码

Define Z_SAFE_HOMING point when Z_PROBE_SLED is activated alone

Scott Lahteine 9 年前
父节点
当前提交
d4134e6901
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 13
    1
      Marlin/Conditionals.h

+ 13
- 1
Marlin/Conditionals.h 查看文件

@@ -378,13 +378,25 @@
378 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 383
   #if ENABLED(Z_PROBE_SLED)
384 384
     #define Z_SAFE_HOMING
385 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 400
    * Host keep alive
389 401
    */
390 402
   #ifndef DEFAULT_KEEPALIVE_INTERVAL

正在加载...
取消
保存