🔧 Base NUM_SERVO_PLUGS on SERVO PINS (#26640)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
ellensp
2024-01-10 10:19:47 +13:00
committed by GitHub
parent 477b70eccf
commit f6ecdae972
10 changed files with 70 additions and 33 deletions

View File

@@ -961,9 +961,7 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
/**
* Limited number of servos
*/
#if NUM_SERVOS > NUM_SERVO_PLUGS
#error "The selected board doesn't support enough servos for your configuration. Reduce NUM_SERVOS."
#endif
static_assert(NUM_SERVOS <= NUM_SERVO_PLUGS, "NUM_SERVOS (or some servo index) is too large. The selected board only has " STRINGIFY(NUM_SERVO_PLUGS) " servos.");
/**
* Servo deactivation depends on servo endstops, switching nozzle, or switching extruder