idle_timeout: Add status field for current idle timeout (#6982)

Signed-off-by: Eric Billmeyer <eric.billmeyer@freenet.de>
This commit is contained in:
Contomo
2025-08-01 18:37:47 +02:00
committed by GitHub
parent 2cbb895978
commit d5c031bc13
2 changed files with 6 additions and 1 deletions

View File

@@ -35,7 +35,9 @@ class IdleTimeout:
printing_time = 0.
if self.state == "Printing":
printing_time = eventtime - self.last_print_start_systime
return { "state": self.state, "printing_time": printing_time }
return {"state": self.state,
"printing_time": printing_time,
"idle_timeout": self.idle_timeout}
def handle_ready(self):
self.toolhead = self.printer.lookup_object('toolhead')
self.timeout_timer = self.reactor.register_timer(self.timeout_handler)