Commit 17c4166a authored by Guillaume Seguin's avatar Guillaume Seguin

Fix M114 handling for Marlin and cleanup

parent 3695de33
...@@ -1138,15 +1138,18 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1138,15 +1138,18 @@ class PronterWindow(MainWindow, pronsole.pronsole):
return retval return retval
def recvcb(self, l): def recvcb(self, l):
if "ok C:" in l: isreport = False
if "ok C:" in l or "Count" in l:
self.posreport = l self.posreport = l
self.update_pos() self.update_pos()
isreport = True
if "ok T:" in l: if "ok T:" in l:
self.tempreport = l self.tempreport = l
wx.CallAfter(self.tempdisp.SetLabel, self.tempreport.strip().replace("ok ", "")) wx.CallAfter(self.tempdisp.SetLabel, self.tempreport.strip().replace("ok ", ""))
self.update_tempdisplay() self.update_tempdisplay()
isreport = True
tstring = l.rstrip() tstring = l.rstrip()
if self.p.loud or (tstring not in ["ok", "wait"] and "ok T:" not in tstring and "ok C:" not in tstring): if self.p.loud or (tstring not in ["ok", "wait"] and not isreport):
wx.CallAfter(self.addtexttolog, tstring + "\n"); wx.CallAfter(self.addtexttolog, tstring + "\n");
for listener in self.recvlisteners: for listener in self.recvlisteners:
listener(l) listener(l)
......
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