Make sure NUM_SERVOS is set for Z servo endstop

2.0.x
Scott Lahteine 9 years ago
parent b590a7dee0
commit 42ce60c5cc

@ -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