0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-19 16:16:13 +00:00

🩹 Allow for last non-servo extruder

This commit is contained in:
Scott Lahteine 2022-10-24 17:04:55 -05:00
parent f4dc9d572b
commit 6e1f0be215

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);
}