From e068012cfbc67b3037667c77ebf3982e8e9aa02c 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 (cherry picked from commit 8fbb304) --- 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 57599ed6..8f829872 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -562,7 +562,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: