reset Arduino after alarm message (by closing and opening the serial port)

This commit is contained in:
make-ing 2015-11-16 15:06:42 +01:00
parent 21f26648eb
commit ef9ddd2864

View file

@ -377,6 +377,10 @@ class MachineCom(object):
self._send_event.clear(completely=True)
self._changeState(self.STATE_LOCKED)
# close and open serial port to reset arduino
self._serial.close()
self._openSerial()
def _handle_feedback_message(self, line):
if line[1:].startswith('Res'): # [Reset to continue]
pass