diff --git a/boxflat/moza_command.py b/boxflat/moza_command.py index 4edaf91..1855037 100644 --- a/boxflat/moza_command.py +++ b/boxflat/moza_command.py @@ -220,5 +220,7 @@ def prepare_message(self, start_value: int, ret.extend(self.id_bytes) ret.extend(self._payload) ret.append(self.checksum(ret, magic_value)) + if ret[-1] == 0x7e: + ret.append(0x7e) return bytes(ret)