Explorar el Código

Patch newly-introduced bug in IS_Z2_OR_PROBE

Scott Lahteine hace 7 años
padre
commit
c2c9f01c8e
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      Marlin/Conditionals_post.h

+ 3
- 3
Marlin/Conditionals_post.h Ver fichero

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

Loading…
Cancelar
Guardar