Patch newly-introduced bug in IS_Z2_OR_PROBE

This commit is contained in:
Scott Lahteine 2017-04-30 20:14:26 -05:00
parent 819df5e06d
commit c2c9f01c8e

View File

@ -406,9 +406,9 @@
#endif #endif
#endif #endif
#define IS_Z2_OR_PROBE(P) (PIN_EXISTS(Z2_MIN_PIN) && (P == Z2_MIN_PIN) \ #define IS_Z2_OR_PROBE(P) ( (PIN_EXISTS(Z2_MIN) && (P) == Z2_MIN_PIN) \
|| PIN_EXISTS(Z2_MAX_PIN) && (P == Z2_MAX_PIN) \ || (PIN_EXISTS(Z2_MAX) && (P) == Z2_MAX_PIN) \
|| PIN_EXISTS(Z_MIN_PROBE_PIN) && (P == Z_MIN_PROBE_PIN)) || (PIN_EXISTS(Z_MIN_PROBE) && (P) == Z_MIN_PROBE_PIN))
/** /**
* Set ENDSTOPPULLUPS for active endstop switches * Set ENDSTOPPULLUPS for active endstop switches