diff options
Diffstat (limited to 'scripts/remote/controller.py')
-rw-r--r-- | scripts/remote/controller.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/remote/controller.py b/scripts/remote/controller.py index eaab9f8f6b..2ed834613e 100644 --- a/scripts/remote/controller.py +++ b/scripts/remote/controller.py @@ -46,9 +46,6 @@ def unpack(data): elif p_type == BBType.fs_return: logging.debug("received: fs_return") return BBPacketFSReturn(raw=data) - elif p_type == BBType.md: - logging.debug("received: md") - return BBPacketMd(raw=data) elif p_type == BBType.md_return: logging.debug("received: md_return") return BBPacketMdReturn(raw=data) @@ -58,6 +55,9 @@ def unpack(data): elif p_type == BBType.mw_return: logging.debug("received: mw_return") return BBPacketMwReturn(raw=data) + elif p_type == BBType.reset: + logging.debug("received: reset") + return BBPacketReset(raw=data) else: logging.debug("received: UNKNOWN") return BBPacket(raw=data) @@ -136,6 +136,9 @@ class Controller(Thread): logging.info("Mw return: %r", r) return (r.exit_code,r.written) + def reset(self, force): + self._send(BBPacketReset(force=force)) + def close(self): self.conn.close() |