mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02: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
@ -459,7 +459,7 @@ class ToolHead:
|
|||||||
ffi_main, ffi_lib = chelper.get_ffi()
|
ffi_main, ffi_lib = chelper.get_ffi()
|
||||||
ffi_lib.trapq_set_position(self.trapq, self.print_time,
|
ffi_lib.trapq_set_position(self.trapq, self.print_time,
|
||||||
newpos[0], newpos[1], newpos[2])
|
newpos[0], newpos[1], newpos[2])
|
||||||
self.commanded_pos[:] = newpos
|
self.commanded_pos[:3] = newpos[:3]
|
||||||
self.kin.set_position(newpos, homing_axes)
|
self.kin.set_position(newpos, homing_axes)
|
||||||
self.printer.send_event("toolhead:set_position")
|
self.printer.send_event("toolhead:set_position")
|
||||||
def limit_next_junction_speed(self, speed):
|
def limit_next_junction_speed(self, speed):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user