From 8c13811c3bbf1b4e1a48413775b60c0d50e6a5f4 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 13 Aug 2025 15:28:28 -0400 Subject: [PATCH] toolhead: Avoid using print_time when calling mcu.check_active() Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 62756dfd..bd9f67da 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -568,9 +568,8 @@ class ToolHead: self.motion_queuing.wipe_trapq(self.trapq) # Misc commands def stats(self, eventtime): - max_queue_time = max(self.print_time, self.last_flush_time) for m in self.all_mcus: - m.check_active(max_queue_time, eventtime) + m.check_active(self.last_step_gen_time, eventtime) est_print_time = self.mcu.estimated_print_time(eventtime) buffer_time = self.print_time - est_print_time is_active = buffer_time > -60. or not self.special_queuing_state