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>
This commit is contained in:
parent
f1203d56f6
commit
bd2a849566
|
@ -332,7 +332,7 @@ class ToolHead:
|
||||||
if self.special_queuing_state:
|
if self.special_queuing_state:
|
||||||
self._update_drip_move_time(next_move_time)
|
self._update_drip_move_time(next_move_time)
|
||||||
self._update_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):
|
def flush_step_generation(self):
|
||||||
# Transition from "Flushed"/"Priming"/main state to "Flushed" state
|
# Transition from "Flushed"/"Priming"/main state to "Flushed" state
|
||||||
self.move_queue.flush()
|
self.move_queue.flush()
|
||||||
|
|
Loading…
Reference in New Issue