fix bug where byte str comparision was done incorrectly

This commit is contained in:
Jonas Kittner 2021-10-20 21:28:13 +02:00
parent ca3885aeac
commit 845d4388fc

View file

@ -113,7 +113,7 @@ def _read_degrees(data, index, neg):
def _parse_talker(data_type):
# Split the data_type into talker and sentence_type
if data_type[0] == b"P": # Proprietary codes
if data_type[:1] == b"P": # Proprietary codes
return (data_type[:1], data_type[1:])
return (data_type[:2], data_type[2:])