diff --git a/doc/modem_fft.jpg b/doc/modem_fft.jpg new file mode 100644 index 0000000..f3f41a1 Binary files /dev/null and b/doc/modem_fft.jpg differ diff --git a/horusdemodlib/decoder.py b/horusdemodlib/decoder.py index b936335..9ea7fd0 100644 --- a/horusdemodlib/decoder.py +++ b/horusdemodlib/decoder.py @@ -90,6 +90,8 @@ def decode_packet(data:bytes, packet_format:dict = None) -> dict: # Attempt to lookup the format based on the length of the data if it has not been provided. if len(data) in HORUS_LENGTH_TO_FORMAT: packet_format = HORUS_PACKET_FORMATS[HORUS_LENGTH_TO_FORMAT[len(data)]] + else: + raise ValueError(f"Unknown Packet Length ({len(data)}).") # Output dictionary