Skip to content

Commit

Permalink
🩹 Allow for last non-servo extruder
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Oct 24, 2022
1 parent f4dc9d5 commit 6e1f0be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6e1f0be

Please sign in to comment.