瀏覽代碼

Merge pull request #6490 from Bob-the-Kuhn/Missing-X-stop

Endstop not enabled if pin is zero
Scott Lahteine 8 年之前
父節點
當前提交
0750933bc6
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      Marlin/Conditionals_post.h

+ 3
- 1
Marlin/Conditionals_post.h 查看文件

@@ -406,7 +406,9 @@
406 406
     #endif
407 407
   #endif
408 408
 
409
-  #define IS_Z2_OR_PROBE(P) (P == Z2_MIN_PIN || P == Z2_MAX_PIN || P == Z_MIN_PROBE_PIN)
409
+  #define IS_Z2_OR_PROBE(P) (PIN_EXISTS(Z2_MIN_PIN)      && (P == Z2_MIN_PIN) \
410
+                          || PIN_EXISTS(Z2_MAX_PIN)      && (P == Z2_MAX_PIN) \ 
411
+                          || PIN_EXISTS(Z_MIN_PROBE_PIN) && (P == Z_MIN_PROBE_PIN))
410 412
 
411 413
   /**
412 414
    * Set ENDSTOPPULLUPS for active endstop switches

Loading…
取消
儲存