Browse Source

Use PIN_EXISTS in sanity check

Scott Lahteine 10 years ago
parent
commit
edeb58288e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/SanityCheck.h

+ 1
- 1
Marlin/SanityCheck.h View File

@@ -146,7 +146,7 @@
146 146
      * Require a Z Probe Pin if Z_PROBE_ENDSTOP is enabled.
147 147
      */
148 148
     #if ENABLED(Z_PROBE_ENDSTOP)
149
-      #ifndef Z_PROBE_PIN
149
+      #if !PIN_EXISTS(Z_PROBE)
150 150
         #error You must have a Z_PROBE_PIN defined in your pins_XXXX.h file if you enable Z_PROBE_ENDSTOP.
151 151
       #endif
152 152
       #if Z_PROBE_PIN == -1

Loading…
Cancel
Save