aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2023-01-06 13:00:05 -0500
committerKevin O'Connor <kevin@koconnor.net>2023-01-08 10:40:52 -0500
commitbd2a84956626d17a10518f1d42a6c6e9ec415a4a (patch)
treef6e917c6f83c01740e666bedd43908680719e55a /klippy/toolhead.py
parentf1203d56f6bc2c84d00605a76525be4c13430324 (diff)
downloadkutter-bd2a84956626d17a10518f1d42a6c6e9ec415a4a.tar.gz
kutter-bd2a84956626d17a10518f1d42a6c6e9ec415a4a.tar.xz
kutter-bd2a84956626d17a10518f1d42a6c6e9ec415a4a.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py2
1 files changed, 1 insertions, 1 deletions
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()