forward communication errors

This commit is contained in:
Teja 2015-04-25 21:43:58 +02:00
parent d3e50b43a1
commit e56a53a4c8

View file

@ -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):