Commit 7fb7e078 authored by Guillaume Seguin's avatar Guillaume Seguin

Handle Marlin language-specific M114 replies

This is sort of a hack (counting the number of X: Y: Z:) but should work for
now.
parent 03c6a905
...@@ -1455,7 +1455,8 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -1455,7 +1455,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def recvcb(self, l): def recvcb(self, l):
isreport = False isreport = False
if "ok C:" in l or "Count" in l: if "ok C:" in l or "Count" in l \
or ("X:" in l and len(gcoder.m114_exp.findall(l)) == 6):
self.posreport = l self.posreport = l
self.update_pos(l) self.update_pos(l)
if self.userm114 > 0: if self.userm114 > 0:
......
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