소스 검색

add PIN_EXISTS to HAS_xyz_MIN macro

Bob-the-Kuhn 8 년 전
부모
커밋
40089249c3
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…
취소
저장