diff --git a/main.py b/main.py index 8bb838f..1383c52 100644 --- a/main.py +++ b/main.py @@ -131,6 +131,12 @@ def main(): data = msg[0] timestamp = msg[1] + + if len(data) < 6: + # somehow data that is not enough to unpack + # the class, id, and payload length + continue + if data[0] == SYNC1 and data[1] == SYNC2: try: (cls, id, payload_len) = struct.unpack("