🩹 Allow for last non-servo extruder

This commit is contained in:
Scott Lahteine 2022-10-24 17:04:55 -05:00
parent 9a4715f31a
commit 1540e8e1d4

View File

@ -115,7 +115,8 @@
void move_extruder_servo(const uint8_t e) { void move_extruder_servo(const uint8_t e) {
planner.synchronize(); 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]); servo[_SERVO_NR(e)].move(servo_angles[_SERVO_NR(e)][e & 1]);
safe_delay(500); safe_delay(500);
} }