Skip to content
Snippets Groups Projects
Commit 42ce60c5 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Make sure NUM_SERVOS is set for Z servo endstop

parent b590a7de
Branches
No related tags found
No related merge requests found
...@@ -233,6 +233,17 @@ ...@@ -233,6 +233,17 @@
#if PROBE_SELECTED #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 * A probe needs a pin
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment