Skip to content

Commit

Permalink
replaced subtype with sentence_type for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
adedolapoadegboye committed Oct 30, 2024
1 parent 80cf27f commit b624343
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 57 deletions.
6 changes: 3 additions & 3 deletions pynmea2/nmea.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def parse(line, check=False):
# For PQTM messages, extract the manufacturer (always "QTM") and subtype from concatenated type
if sentence_type.startswith("PQTM") and len(sentence_type) > 4:
manufacturer = "QTM"
subtype = sentence_type[4:] # Extract "SAVEPAR" part
data.insert(0, subtype) # Add subtype to data for class handling
manufacturer += subtype # Create full type for lookup
sentence_type = sentence_type[4:] # Extract "SAVEPAR" part
data.insert(0, sentence_type) # Add sentence_type to data for class handling
manufacturer += sentence_type # Create full type for lookup

talker_match = NMEASentence.talker_re.match(sentence_type)
if talker_match:
Expand Down
Loading

0 comments on commit b624343

Please sign in to comment.