From 8fbb30437cc398c8c5ec0cd3c5b1dc476d8a0f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 10 Mar 2014 13:04:12 +0100 Subject: [PATCH] Fixed a regex matcher --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index c4f02a88..34f7b960 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -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: