Skip to content

Commit

Permalink
Make M114 "Count" detection more specific
Browse files Browse the repository at this point in the history
Any line containing "Count" is being detected as M114 output, so for
example any string containing the word "Counter-Clockwise" gets
swallowed.

By changing the test to ``" Count "`` this should be improved.

Fixes kliment#1103
  • Loading branch information
duk3luk3 committed Sep 6, 2020
1 parent ff056a0 commit b9e2771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printrun/pronsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ def endcb(self):

def recvcb_report(self, l):
isreport = REPORT_NONE
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
isreport = REPORT_POS
Expand Down

0 comments on commit b9e2771

Please sign in to comment.