From 07f0ecb4d059f653322db54064b36c9fc79bbb95 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 23 Jul 2021 12:46:14 -0400 Subject: trapq: Store toolhead.set_position() updates in trapq history Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'klippy/toolhead.py') diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 3097c7dc..155848be 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -401,7 +401,9 @@ class ToolHead: return list(self.commanded_pos) def set_position(self, newpos, homing_axes=()): self.flush_step_generation() - self.trapq_finalize_moves(self.trapq, self.reactor.NEVER) + 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.kin.set_position(newpos, homing_axes) self.printer.send_event("toolhead:set_position") -- cgit v1.2.3-70-g09d2