|
|
|
@ -607,14 +607,47 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
|
|
|
|
|
#error "SWITCHING_NOZZLE requires exactly 2 EXTRUDERS."
|
|
|
|
|
#elif NUM_SERVOS < 1
|
|
|
|
|
#error "SWITCHING_NOZZLE requires NUM_SERVOS >= 1."
|
|
|
|
|
#elif SWITCHING_NOZZLE_SERVO_NR == 0 && !PIN_EXISTS(SERVO0)
|
|
|
|
|
#error "SERVO0_PIN must be defined for your SWITCHING_NOZZLE."
|
|
|
|
|
#elif SWITCHING_NOZZLE_SERVO_NR == 1 && !PIN_EXISTS(SERVO1)
|
|
|
|
|
#error "SERVO1_PIN must be defined for your SWITCHING_NOZZLE."
|
|
|
|
|
#elif SWITCHING_NOZZLE_SERVO_NR == 2 && !PIN_EXISTS(SERVO2)
|
|
|
|
|
#error "SERVO2_PIN must be defined for your SWITCHING_NOZZLE."
|
|
|
|
|
#elif SWITCHING_NOZZLE_SERVO_NR == 3 && !PIN_EXISTS(SERVO3)
|
|
|
|
|
#error "SERVO3_PIN must be defined for your SWITCHING_NOZZLE."
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Single Stepper Dual Extruder with switching servo
|
|
|
|
|
*/
|
|
|
|
|
#if ENABLED(SWITCHING_EXTRUDER) && NUM_SERVOS < 1
|
|
|
|
|
#error "SWITCHING_EXTRUDER requires NUM_SERVOS >= 1."
|
|
|
|
|
#if ENABLED(SWITCHING_EXTRUDER)
|
|
|
|
|
#if NUM_SERVOS < 1
|
|
|
|
|
#error "SWITCHING_EXTRUDER requires NUM_SERVOS >= 1."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 0 && !PIN_EXISTS(SERVO0)
|
|
|
|
|
#error "SERVO0_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 1 && !PIN_EXISTS(SERVO1)
|
|
|
|
|
#error "SERVO1_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 2 && !PIN_EXISTS(SERVO2)
|
|
|
|
|
#error "SERVO2_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_SERVO_NR == 3 && !PIN_EXISTS(SERVO3)
|
|
|
|
|
#error "SERVO3_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#endif
|
|
|
|
|
#if EXTRUDERS > 3
|
|
|
|
|
#if NUM_SERVOS < 2
|
|
|
|
|
#error "SWITCHING_EXTRUDER with 4 extruders requires NUM_SERVOS >= 2."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 0 && !PIN_EXISTS(SERVO0)
|
|
|
|
|
#error "SERVO0_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 1 && !PIN_EXISTS(SERVO1)
|
|
|
|
|
#error "SERVO1_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 2 && !PIN_EXISTS(SERVO2)
|
|
|
|
|
#error "SERVO2_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == 3 && !PIN_EXISTS(SERVO3)
|
|
|
|
|
#error "SERVO3_PIN must be defined for your SWITCHING_EXTRUDER."
|
|
|
|
|
#elif SWITCHING_EXTRUDER_E23_SERVO_NR == SWITCHING_EXTRUDER_SERVO_NR
|
|
|
|
|
#error "SWITCHING_EXTRUDER_E23_SERVO_NR should be a different extruder from SWITCHING_EXTRUDER_SERVO_NR."
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|