aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-07-23 12:46:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-07-29 16:35:30 -0400
commit07f0ecb4d059f653322db54064b36c9fc79bbb95 (patch)
treef3e3771e1713821a017a9d805831a70fb4fb6360 /klippy/toolhead.py
parent45c232b2c724136aa9ef54b2858712640baacb3d (diff)
downloadkutter-07f0ecb4d059f653322db54064b36c9fc79bbb95.tar.gz
kutter-07f0ecb4d059f653322db54064b36c9fc79bbb95.tar.xz
kutter-07f0ecb4d059f653322db54064b36c9fc79bbb95.zip
trapq: Store toolhead.set_position() updates in trapq history
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py4
1 files changed, 3 insertions, 1 deletions
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")