From ae536b4786981e71e6377524ff546751887bfc64 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 21 Mar 2025 22:12:30 -0400 Subject: [PATCH] toolhead: Only alter XYZ coordinates on set_position() calls It's not valid to alter the extruder position from a call to set_position(), so don't allow callers to attempt that. Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/toolhead.py b/klippy/toolhead.py index afb1ef0f..93c87331 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -459,7 +459,7 @@ class ToolHead: ffi_main, ffi_lib = chelper.get_ffi() ffi_lib.trapq_set_position(self.trapq, self.print_time, newpos[0], newpos[1], newpos[2]) - self.commanded_pos[:] = newpos + self.commanded_pos[:3] = newpos[:3] self.kin.set_position(newpos, homing_axes) self.printer.send_event("toolhead:set_position") def limit_next_junction_speed(self, speed):