From c2c9f01c8e9c14272c2b4b15cad07880a3ef801e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 30 Apr 2017 20:14:26 -0500 Subject: [PATCH] Patch newly-introduced bug in IS_Z2_OR_PROBE --- Marlin/Conditionals_post.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/Conditionals_post.h b/Marlin/Conditionals_post.h index 1d994ce1ac..fae3d1b7fb 100644 --- a/Marlin/Conditionals_post.h +++ b/Marlin/Conditionals_post.h @@ -406,9 +406,9 @@ #endif #endif - #define IS_Z2_OR_PROBE(P) (PIN_EXISTS(Z2_MIN_PIN) && (P == Z2_MIN_PIN) \ - || PIN_EXISTS(Z2_MAX_PIN) && (P == Z2_MAX_PIN) \ - || PIN_EXISTS(Z_MIN_PROBE_PIN) && (P == Z_MIN_PROBE_PIN)) + #define IS_Z2_OR_PROBE(P) ( (PIN_EXISTS(Z2_MIN) && (P) == Z2_MIN_PIN) \ + || (PIN_EXISTS(Z2_MAX) && (P) == Z2_MAX_PIN) \ + || (PIN_EXISTS(Z_MIN_PROBE) && (P) == Z_MIN_PROBE_PIN)) /** * Set ENDSTOPPULLUPS for active endstop switches