semuconsulting / pynmeagps

Python library for parsing and generating NMEA 0183 GNSS/GPS protocol messages.
BSD 3-Clause "New" or "Revised" License
81 stars 28 forks source link

update VALMSGID flag processing Fixes #25 #26

Closed semuadmin closed 1 year ago

semuadmin commented 1 year ago

pynmeagps Pull Request Template

Description

Fix NMEAReader to correctly process VALMSGID flag. If the NMEA message is valid (i.e. checksum is good) but unknown;

NB: the VALMSGID flag is only intended to allow valid but unknown NMEA messages to be ignored. If the NMEA stream message is garbage, other parsing errors may still be raised. These can be ignored by setting the quitonerror flag to False.

Fixes #25

Testing

Please test all changes, however trivial, against the supplied unittest suite tests/test_*.py e.g. by executing the tests/testsuite.py module or using your IDE's native Python unittest integration facilities. Please describe any test cases you have amended or added to this suite to maintain >= 99% code coverage.

Checklist: