fixed temperature gauge lagging

master
Keegi 2011-10-27 16:37:10 +03:00
parent 010a3fcb15
commit 1fe67e7d23
1 changed files with 4 additions and 0 deletions

View File

@ -1070,6 +1070,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if "T:" in l:
self.tempreport=l
wx.CallAfter(self.tempdisp.SetLabel,self.tempreport.strip().replace("ok ",""))
try:
self.tgauge.SetValue(int(filter(lambda x:x.startswith("T:"),self.tempreport.split())[0].split(":")[1]))
except:
pass
tstring=l.rstrip()
#print tstring
if(tstring!="ok"):