Commit 40742d31 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix #584 (properly set isreport even for manual M105/M114)

parent b6c01059
......@@ -1193,17 +1193,16 @@ class pronsole(cmd.Cmd):
if "ok C:" in l or "Count" in l \
or ("X:" in l and len(gcoder.m114_exp.findall(l)) == 6):
self.posreport = l
isreport = REPORT_POS
if self.userm114 > 0:
self.userm114 -= 1
else:
isreport = REPORT_POS
if "ok T:" in l or tempreading_exp.findall(l):
self.tempreadings = l
isreport = REPORT_TEMP
if self.userm105 > 0:
self.userm105 -= 1
else:
self.m105_waitcycles = 0
isreport = REPORT_TEMP
return isreport
def recvcb(self, 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