mirror of
https://github.com/andreili/klipper.git
synced 2025-09-14 17:31:12 +02: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
@ -568,9 +568,8 @@ class ToolHead:
|
|||||||
self.motion_queuing.wipe_trapq(self.trapq)
|
self.motion_queuing.wipe_trapq(self.trapq)
|
||||||
# Misc commands
|
# Misc commands
|
||||||
def stats(self, eventtime):
|
def stats(self, eventtime):
|
||||||
max_queue_time = max(self.print_time, self.last_flush_time)
|
|
||||||
for m in self.all_mcus:
|
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)
|
est_print_time = self.mcu.estimated_print_time(eventtime)
|
||||||
buffer_time = self.print_time - est_print_time
|
buffer_time = self.print_time - est_print_time
|
||||||
is_active = buffer_time > -60. or not self.special_queuing_state
|
is_active = buffer_time > -60. or not self.special_queuing_state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user