Skip to content

Commit

Permalink
toolhead: Fix note_kinematic_activity()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
KevinOConnor committed Jan 8, 2023
1 parent f1203d5 commit bd2a849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/toolhead.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _process_moves(self, moves):
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()
Expand Down

0 comments on commit bd2a849

Please sign in to comment.