mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-09 00:07:48 -07:00
toolhead: Avoid using print_time when calling mcu.check_active()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
db5cbe56d3
commit
8c13811c3b
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue