Commit 4d1917fc authored by kliment's avatar kliment

Temp report display below check temp button

parent 8078f72a
...@@ -478,6 +478,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -478,6 +478,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
except: except:
pass pass
string+=(self.tempreport.replace("\r","").replace("T","Hotend").replace("B","Bed").replace("\n","").replace("ok ",""))+" " string+=(self.tempreport.replace("\r","").replace("T","Hotend").replace("B","Bed").replace("\n","").replace("ok ",""))+" "
wx.CallAfter(self.tempdisp.SetLabel,self.tempreport.strip().replace("ok ",""))
if self.sdprinting: if self.sdprinting:
string+= " SD printing:%04.2f %%"%(self.percentdone,) string+= " SD printing:%04.2f %%"%(self.percentdone,)
if self.p.printing: if self.p.printing:
...@@ -514,6 +515,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -514,6 +515,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
def recvcb(self,l): def recvcb(self,l):
if "T:" in l: if "T:" in l:
self.tempreport=l self.tempreport=l
wx.CallAfter(self.tempdisp.SetLabel,self.tempreport.strip().replace("ok ",""))
tstring=l.rstrip() tstring=l.rstrip()
#print tstring #print tstring
if(tstring!="ok"): if(tstring!="ok"):
......
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