idle_timeout: Fix typo causing get_status() to fail

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-06-07 12:30:42 -04:00
parent 9d33ef4061
commit 01f3b50e73
1 changed files with 1 additions and 1 deletions

View File

@ -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):