Browse Source

Remove redundant servo probe sanity check

Scott Lahteine 8 years ago
parent
commit
7d9ebda478
1 changed files with 3 additions and 7 deletions
  1. 3
    7
      Marlin/SanityCheck.h

+ 3
- 7
Marlin/SanityCheck.h View File

306
 /**
306
 /**
307
  * Limited number of servos
307
  * Limited number of servos
308
  */
308
  */
309
-#if defined(NUM_SERVOS) && NUM_SERVOS > 0
310
-  #if NUM_SERVOS > 4
311
-    #error "The maximum number of SERVOS in Marlin is 4."
312
-  #elif HAS_Z_SERVO_ENDSTOP && Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
313
-    #error "Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
314
-  #endif
309
+#if NUM_SERVOS > 4
310
+  #error "The maximum number of SERVOS in Marlin is 4."
315
 #endif
311
 #endif
316
 
312
 
317
 /**
313
 /**
367
     #ifndef NUM_SERVOS
363
     #ifndef NUM_SERVOS
368
       #error "You must set NUM_SERVOS for a Z servo probe (Z_ENDSTOP_SERVO_NR)."
364
       #error "You must set NUM_SERVOS for a Z servo probe (Z_ENDSTOP_SERVO_NR)."
369
     #elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
365
     #elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
370
-      #error "Z_ENDSTOP_SERVO_NR must be less than NUM_SERVOS."
366
+      #error "Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
371
     #endif
367
     #endif
372
   #endif
368
   #endif
373
 
369
 

Loading…
Cancel
Save