Browse Source

Fix IS_PROBE_PIN macro (#19024)

Julius Mumme 5 years ago
parent
commit
96e29cd7e5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/inc/Conditionals_post.h

+ 1
- 1
Marlin/src/inc/Conditionals_post.h View File

1618
 //
1618
 //
1619
 
1619
 
1620
 // Is an endstop plug used for extra Z endstops or the probe?
1620
 // Is an endstop plug used for extra Z endstops or the probe?
1621
-#define IS_PROBE_PIN(A,M) (HAS_CUSTOM_PROBE_PIN && Z_MIN_PROBE_PIN == P)
1621
+#define IS_PROBE_PIN(A,M) (HAS_CUSTOM_PROBE_PIN && Z_MIN_PROBE_PIN == A##_##M##_PIN)
1622
 #define IS_X2_ENDSTOP(A,M) (ENABLED(X_DUAL_ENDSTOPS) && X2_USE_ENDSTOP == _##A##M##_)
1622
 #define IS_X2_ENDSTOP(A,M) (ENABLED(X_DUAL_ENDSTOPS) && X2_USE_ENDSTOP == _##A##M##_)
1623
 #define IS_Y2_ENDSTOP(A,M) (ENABLED(Y_DUAL_ENDSTOPS) && Y2_USE_ENDSTOP == _##A##M##_)
1623
 #define IS_Y2_ENDSTOP(A,M) (ENABLED(Y_DUAL_ENDSTOPS) && Y2_USE_ENDSTOP == _##A##M##_)
1624
 #define IS_Z2_ENDSTOP(A,M) (ENABLED(Z_MULTI_ENDSTOPS) && Z2_USE_ENDSTOP == _##A##M##_)
1624
 #define IS_Z2_ENDSTOP(A,M) (ENABLED(Z_MULTI_ENDSTOPS) && Z2_USE_ENDSTOP == _##A##M##_)

Loading…
Cancel
Save