Browse Source

Further Sanity Checks for Z_PROBE_AND_ENDSTOP.

Chris Roadfeldt 9 years ago
parent
commit
059052889f
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      Marlin/SanityCheck.h

+ 11
- 1
Marlin/SanityCheck.h View File

@@ -92,12 +92,22 @@
92 92
     #if Z_MIN_PIN == -1
93 93
       #if Z_PROBE_PIN == -1
94 94
         #ifdef Z_PROBE_REPEATABILITY_TEST
95
-          #error You must have a Z_MIN endstop to enable Z_PROBE_REPEATABILITY_TEST.
95
+          #error You must have a Z_MIN or Z_PROBE endstop to enable Z_PROBE_REPEATABILITY_TEST.
96 96
         #else
97 97
           #error ENABLE_AUTO_BED_LEVELING requires a Z_MIN or Z_PROBE endstop. Z_MIN_PIN or Z_PROBE_PIN must point to a valid hardware pin.
98 98
         #endif
99 99
       #endif
100 100
     #endif
101
+
102
+    /**
103
+     * Require a Z Probe Pin if Z_PROBE_AND_ENDSTOP is enabled.
104
+     */
105
+    #if defined(Z_PROBE_AND_ENDSTOP)
106
+      #if Z_PROBE_PIN == -1
107
+        #error You must have a Z_PROBE_PIN defined if you enable Z_PROBE_AND_ENDSTOP
108
+      #endif
109
+    #endif
110
+
101 111
     /**
102 112
      * Check if Probe_Offset * Grid Points is greater than Probing Range
103 113
      */

Loading…
Cancel
Save