From 01f3b50e7399f3ea327c6de2130dc16b6f8a27f5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 7 Jun 2019 12:30:42 -0400 Subject: [PATCH] idle_timeout: Fix typo causing get_status() to fail Signed-off-by: Kevin O'Connor --- klippy/extras/idle_timeout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/idle_timeout.py b/klippy/extras/idle_timeout.py index d0a062d4..f12d1aa0 100644 --- a/klippy/extras/idle_timeout.py +++ b/klippy/extras/idle_timeout.py @@ -30,7 +30,7 @@ class IdleTimeout: self.last_print_start_systime = 0. def get_status(self, eventtime): printing_time = 0. - if state == "Printing": + if self.state == "Printing": printing_time = eventtime - self.last_print_start_systime return { "state": self.state, "printing_time": printing_time } def handle_ready(self):