diff --git a/arduinosender/CommunicationMain.py b/arduinosender/CommunicationMain.py index bc4622d..c66ec2f 100644 --- a/arduinosender/CommunicationMain.py +++ b/arduinosender/CommunicationMain.py @@ -68,6 +68,8 @@ def sendWithAck(gcodeCommand, timeoutCom): raise RuntimeError('Command not executed') if received.startswith('-1'): raise RuntimeError('Command error') + if received.startswith('-2'): + raise RuntimeError('Device error, please reset the device') else: break