Browse Source

Make sure NUM_SERVOS is set for Z servo endstop

pull/1/head
Scott Lahteine 8 years ago
parent
commit
42ce60c5cc
  1. 11
      Marlin/SanityCheck.h

11
Marlin/SanityCheck.h

@ -233,6 +233,17 @@
#if PROBE_SELECTED
/**
* NUM_SERVOS is required for a Z servo probe
*/
#if HAS_Z_SERVO_ENDSTOP
#ifndef NUM_SERVOS
#error "You must set NUM_SERVOS for a Z servo probe (Z_ENDSTOP_SERVO_NR)."
#elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
#error "Z_ENDSTOP_SERVO_NR must be less than NUM_SERVOS."
#endif
#endif
/**
* A probe needs a pin
*/

Loading…
Cancel
Save