Add error code
reviewed with @IanLalonde
This commit is contained in:
@@ -68,6 +68,8 @@ def sendWithAck(gcodeCommand, timeoutCom):
|
|||||||
raise RuntimeError('Command not executed')
|
raise RuntimeError('Command not executed')
|
||||||
if received.startswith('-1'):
|
if received.startswith('-1'):
|
||||||
raise RuntimeError('Command error')
|
raise RuntimeError('Command error')
|
||||||
|
if received.startswith('-2'):
|
||||||
|
raise RuntimeError('Device error, please reset the device')
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user