From ade65b90af93577ae5ab5c413d5570d51084c401 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Nov 2019 10:59:13 -0500 Subject: 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 --- klippy/extras/force_move.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'klippy/extras/force_move.py') diff --git a/klippy/extras/force_move.py b/klippy/extras/force_move.py index 12707f4c..0f58ad03 100644 --- a/klippy/extras/force_move.py +++ b/klippy/extras/force_move.py @@ -78,10 +78,11 @@ class ForceMove: print_time = toolhead.get_last_move_time() self.trapq_append(self.trapq, print_time, accel_t, cruise_t, accel_t, 0., 0., 0., axis_r, 0., 0., 0., cruise_v, accel) - print_time += accel_t + cruise_t + accel_t + print_time = print_time + accel_t + cruise_t + accel_t stepper.generate_steps(print_time) - self.trapq_free_moves(self.trapq, print_time) + self.trapq_free_moves(self.trapq, print_time + 99999.9) stepper.set_stepper_kinematics(prev_sk) + toolhead.note_kinematic_activity(print_time) toolhead.dwell(accel_t + cruise_t + accel_t) def _lookup_stepper(self, params): name = self.gcode.get_str('STEPPER', params) -- cgit v1.2.3-70-g09d2