From bd2a84956626d17a10518f1d42a6c6e9ec415a4a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 6 Jan 2023 13:00:05 -0500 Subject: [PATCH] toolhead: Fix note_kinematic_activity() It was possible a note_kinematic_activity() call could increase last_kin_move_time, but _process_moves() could reset it. Fix by making sure _process_moves() only ever increases last_kin_move_time. Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 2398d7ca..3cf1444c 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -332,7 +332,7 @@ class ToolHead: if self.special_queuing_state: self._update_drip_move_time(next_move_time) self._update_move_time(next_move_time) - self.last_kin_move_time = next_move_time + self.last_kin_move_time = max(self.last_kin_move_time, next_move_time) def flush_step_generation(self): # Transition from "Flushed"/"Priming"/main state to "Flushed" state self.move_queue.flush()