Browse Source

Additional Sanity Checks for Z_PROBE_AND_ENDSTOP

Chris Roadfeldt 10 years ago
parent
commit
05134f0807
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      Marlin/SanityCheck.h

+ 9
- 1
Marlin/SanityCheck.h View File

106
       #if Z_PROBE_PIN == -1
106
       #if Z_PROBE_PIN == -1
107
         #error You must have a Z_PROBE_PIN defined if you enable Z_PROBE_AND_ENDSTOP
107
         #error You must have a Z_PROBE_PIN defined if you enable Z_PROBE_AND_ENDSTOP
108
       #endif
108
       #endif
109
+      #ifndef (NUM_SERVOS)
110
+        #error You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_PROBE_AND_ENDSTOP
111
+      #endif
112
+      #if defined(NUM_SERVOS) && NUM_SERVOS < 1
113
+        #error You must have at least 1 servo defined for NUM_SERVOS to use Z_PROBE_AND_ENDSTOP
114
+      #endif
115
+      #ifndef SERVO_ENDSTOPS
116
+        #error You must have SERVO_ENDSTOPS defined and have the Z index set to at least 1 to use Z_PROBE_AND_ENDSTOP
117
+      #endif
109
     #endif
118
     #endif
110
-
111
     /**
119
     /**
112
      * Check if Probe_Offset * Grid Points is greater than Probing Range
120
      * Check if Probe_Offset * Grid Points is greater than Probing Range
113
      */
121
      */

Loading…
Cancel
Save