From 1540e8e1d4545005413fe8bd7f6aaf2eef958aa6 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 24 Oct 2022 17:04:55 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Allow=20for=20last=20non-servo?= =?UTF-8?q?=20extruder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/module/tool_change.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/src/module/tool_change.cpp b/Marlin/src/module/tool_change.cpp index cd18462be3..a0939d155a 100644 --- a/Marlin/src/module/tool_change.cpp +++ b/Marlin/src/module/tool_change.cpp @@ -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); }