Commit 5c5e41f5 authored by Guillaume Seguin's avatar Guillaume Seguin

Ensure compute_eta cannot be used during sd prints (#501)

parent 4ca7750c
...@@ -1377,7 +1377,10 @@ class pronsole(cmd.Cmd): ...@@ -1377,7 +1377,10 @@ class pronsole(cmd.Cmd):
print _("Print resumed at: %s") % format_time(self.starttime) print _("Print resumed at: %s") % format_time(self.starttime)
else: else:
print _("Print started at: %s") % format_time(self.starttime) print _("Print started at: %s") % format_time(self.starttime)
if not self.sdprinting:
self.compute_eta = RemainingTimeEstimator(self.fgcode) self.compute_eta = RemainingTimeEstimator(self.fgcode)
else:
self.compute_eta = None
try: try:
powerset_print_start(reason = "Preventing sleep during print") powerset_print_start(reason = "Preventing sleep during print")
except: except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment