Commit 8d805e56 authored by Guillaume Seguin's avatar Guillaume Seguin

Display estimated duration when loading GCode in pronsole #445

parent f6fbb75d
...@@ -898,7 +898,8 @@ class pronsole(cmd.Cmd): ...@@ -898,7 +898,8 @@ class pronsole(cmd.Cmd):
self.logError("File not found!") self.logError("File not found!")
return return
self.load_gcode(filename) self.load_gcode(filename)
self.log("Loaded %s, %d lines." % (filename, len(self.fgcode))) self.log(_("Loaded %s, %d lines.") % (filename, len(self.fgcode)))
self.log(_("Estimated duration: %s") % self.fgcode.estimate_duration())
def load_gcode(self, filename): def load_gcode(self, filename):
self.fgcode = gcoder.GCode(open(filename, "rU"), self.fgcode = gcoder.GCode(open(filename, "rU"),
......
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