🩹 Allow for last non-servo extruder

This commit is contained in:
Scott Lahteine
2022-10-24 17:04:55 -05:00
committed by Sven Soost
parent 000fa4b199
commit 6f25c2b1c7

View File

@@ -115,7 +115,8 @@
void move_extruder_servo(const uint8_t e) {
planner.synchronize();
if (e < EXTRUDERS) {
constexpr bool evenExtruders = !(EXTRUDERS & 1);
if (evenExtruders || e < EXTRUDERS - 1) {
servo[_SERVO_NR(e)].move(servo_angles[_SERVO_NR(e)][e & 1]);
safe_delay(500);
}