mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-05 22:37:43 -07:00
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 <kevin@koconnor.net>
This commit is contained in:
parent
8928c394cf
commit
ae536b4786
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue