aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-24 10:59:13 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-11-24 11:55:30 -0500
commitade65b90af93577ae5ab5c413d5570d51084c401 (patch)
tree7fba6f8a2d7adcb504e58335c34c908556ae37ea /klippy/toolhead.py
parentc188aa982f47a0e66e0907d1c39b5e20dcbc4af7 (diff)
downloadkutter-ade65b90af93577ae5ab5c413d5570d51084c401.tar.gz
kutter-ade65b90af93577ae5ab5c413d5570d51084c401.tar.xz
kutter-ade65b90af93577ae5ab5c413d5570d51084c401.zip
force_move: Make sure to flush step generation queue after each move
Add toolhead.note_kinematic_activity() call and use it to force the step generation to be flushed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index f542f17f..7f1731f9 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -504,6 +504,8 @@ class ToolHead:
self.kin_flush_times.append(delay)
new_delay = max(self.kin_flush_times + [0.])
self.kin_flush_delay = new_delay
+ def note_kinematic_activity(self, kin_time):
+ self.last_kin_move_time = max(self.last_kin_move_time, kin_time)
def get_max_velocity(self):
return self.max_velocity, self.max_accel
def get_max_axis_halt(self):