Skip to content

Commit 866ece9

Browse files
committed
fix bug where byte str comparision was done incorrectly
1 parent ca3885a commit 866ece9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_gps.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _read_degrees(data, index, neg):
113113

114114
def _parse_talker(data_type):
115115
# Split the data_type into talker and sentence_type
116-
if data_type[0] == b"P": # Proprietary codes
116+
if data_type[:1] == "P": # Proprietary codes
117117
return (data_type[:1], data_type[1:])
118118

119119
return (data_type[:2], data_type[2:])

0 commit comments

Comments
 (0)