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 Dec 16, 2022
1 parent 9a4715f commit 1540e8e
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 1540e8e

Please sign in to comment.