Fixed a regex matcher

This commit is contained in:
Gina Häußge 2014-03-10 13:04:12 +01:00
parent 9396ed765c
commit 8fbb30437c

View file

@ -702,7 +702,7 @@ class MachineCom(object):
self._callback.mcSdFiles(self._sdFiles)
elif 'SD printing byte' in line:
# answer to M27, at least on Marlin, Repetier and Sprinter: "SD printing byte %d/%d"
match = self._regex_sdPrintingByte.search("([0-9]*)/([0-9]*)", line)
match = self._regex_sdPrintingByte.search(line)
self._currentFile.setFilepos(int(match.group(1)))
self._callback.mcProgress()
elif 'File opened' in line: