|
|
@ -306,12 +306,8 @@
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Limited number of servos
|
|
|
|
* Limited number of servos
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#if defined(NUM_SERVOS) && NUM_SERVOS > 0
|
|
|
|
|
|
|
|
#if NUM_SERVOS > 4
|
|
|
|
#if NUM_SERVOS > 4
|
|
|
|
#error "The maximum number of SERVOS in Marlin is 4."
|
|
|
|
#error "The maximum number of SERVOS in Marlin is 4."
|
|
|
|
#elif HAS_Z_SERVO_ENDSTOP && Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
|
|
|
|
|
|
|
|
#error "Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -367,7 +363,7 @@
|
|
|
|
#ifndef NUM_SERVOS
|
|
|
|
#ifndef NUM_SERVOS
|
|
|
|
#error "You must set NUM_SERVOS for a Z servo probe (Z_ENDSTOP_SERVO_NR)."
|
|
|
|
#error "You must set NUM_SERVOS for a Z servo probe (Z_ENDSTOP_SERVO_NR)."
|
|
|
|
#elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
|
|
|
|
#elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
|
|
|
|
#error "Z_ENDSTOP_SERVO_NR must be less than NUM_SERVOS."
|
|
|
|
#error "Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -404,7 +400,7 @@
|
|
|
|
#if (ENABLED(FIX_MOUNTED_PROBE) && (ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
|
|
|
|
#if (ENABLED(FIX_MOUNTED_PROBE) && (ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
|
|
|
|
|| (ENABLED(Z_PROBE_ALLEN_KEY) && (HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
|
|
|
|
|| (ENABLED(Z_PROBE_ALLEN_KEY) && (HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
|
|
|
|
|| (HAS_Z_SERVO_ENDSTOP && ENABLED(Z_PROBE_SLED))
|
|
|
|
|| (HAS_Z_SERVO_ENDSTOP && ENABLED(Z_PROBE_SLED))
|
|
|
|
#error "Please define only one type of probe: Z Servo, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE."
|
|
|
|
#error "Please define only one type of probe: Z Servo/BLTOUCH, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|