forward communication errors
This commit is contained in:
parent
d3e50b43a1
commit
e56a53a4c8
1 changed files with 7 additions and 0 deletions
|
|
@ -814,6 +814,13 @@ class MachineCom(object):
|
|||
self._changeState(self.STATE_ERROR)
|
||||
eventManager().fire(Events.ERROR, {"error": self.getErrorString()})
|
||||
|
||||
if("error:" in line and self._state == self.STATE_PRINTING):
|
||||
errorMsg = line
|
||||
self._log(errorMsg)
|
||||
self._errorValue = errorMsg
|
||||
self._changeState(self.STATE_ERROR)
|
||||
eventManager().fire(Events.ERROR, {"error": self.getErrorString()})
|
||||
|
||||
if("[" in line):
|
||||
versionMatch = re.search("\[(?P<grbl>.+)\.(?P<git>[0-9a-f]{7})(?P<dirty>-dirty)?:(?P<minor>.*)\]", line)
|
||||
if(versionMatch):
|
||||
|
|
|
|||
Loading…
Reference in a new issue