Commit ffd655d8 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix typos

parent 9eb3fc68
...@@ -54,7 +54,7 @@ import pronsole ...@@ -54,7 +54,7 @@ import pronsole
def dosify(name): def dosify(name):
return os.path.split(name)[1].split(".")[0][:8]+".g" return os.path.split(name)[1].split(".")[0][:8]+".g"
def parse_temperatures_report(report, key): def parse_temperature_report(report, key):
return float(filter(lambda x: x.startswith(key), report.split())[0].split(":")[1].split("/")[0]) return float(filter(lambda x: x.startswith(key), report.split())[0].split(":")[1].split("/")[0])
class Tee(object): class Tee(object):
...@@ -1413,9 +1413,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -1413,9 +1413,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
try: try:
#self.hottgauge.SetValue(parse_temperature_report(self.tempreport, "T:")) #self.hottgauge.SetValue(parse_temperature_report(self.tempreport, "T:"))
wx.CallAfter(self.graph.SetExtruder0Temperature, parse_temperature_report(self.tempreport, "T:")) wx.CallAfter(self.graph.SetExtruder0Temperature, parse_temperature_report(self.tempreport, "T:"))
wx.CallAfter(self.graph.SetBedTemperature, parse_temperature_report(self.tempreport, "T:")) wx.CallAfter(self.graph.SetBedTemperature, parse_temperature_report(self.tempreport, "B:"))
except: except:
pass traceback.print_exc()
tstring=l.rstrip() tstring=l.rstrip()
#print tstring #print tstring
if (tstring!="ok") and (tstring!="wait") and ("ok T:" not in tstring): if (tstring!="ok") and (tstring!="wait") and ("ok T:" not in tstring):
......
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