From 50c95e439d740b75d05bcab4a4b81a192e9941bc Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Wed, 20 May 2015 20:06:24 -0700 Subject: [PATCH] Only eat two characters when the error indicator is '!!' --- 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 9a76a869..5ecdd78f 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1287,7 +1287,7 @@ class MachineCom(object): self._lastCommError = line[6:] if line.startswith("Error:") else line[2:] pass elif not self.isError(): - self._errorValue = line[6:] + self._errorValue = line[6:] if line.startswith("Error:") else line[2:] self._changeState(self.STATE_ERROR) eventManager().fire(Events.ERROR, {"error": self.getErrorString()}) return line