mcu: Support reset command

Extend the FIRMWARE_RESTART command so that it can use the firmware
"reset" command instead of the "arduino" mechanism.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-04-02 23:18:16 -04:00
parent 1592395036
commit 9f9e3e61d6
4 changed files with 36 additions and 5 deletions

View file

@ -184,6 +184,7 @@ class UnknownFormat:
return {'#msgid': msgid, '#msg': msg}, len(s)-MESSAGE_TRAILER_SIZE
class MessageParser:
error = error
def __init__(self):
self.unknown = UnknownFormat()
self.messages_by_id = {}