idle_timeout: Fix typo causing get_status() to fail
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
9d33ef4061
commit
01f3b50e73
|
@ -30,7 +30,7 @@ class IdleTimeout:
|
||||||
self.last_print_start_systime = 0.
|
self.last_print_start_systime = 0.
|
||||||
def get_status(self, eventtime):
|
def get_status(self, eventtime):
|
||||||
printing_time = 0.
|
printing_time = 0.
|
||||||
if state == "Printing":
|
if self.state == "Printing":
|
||||||
printing_time = eventtime - self.last_print_start_systime
|
printing_time = eventtime - self.last_print_start_systime
|
||||||
return { "state": self.state, "printing_time": printing_time }
|
return { "state": self.state, "printing_time": printing_time }
|
||||||
def handle_ready(self):
|
def handle_ready(self):
|
||||||
|
|
Loading…
Reference in New Issue