rossengeorgiev / aprs-python

📡 Python module for working with APRS
http://aprs-python.readthedocs.io/en/latest/
GNU General Public License v2.0
118 stars 37 forks source link

Removed trailing characters from PHG field #48

Closed wsmitchell3 closed 6 years ago

wsmitchell3 commented 6 years ago

According to spec, we are looking for PHGxyxx where x is a digit 0-9 and y is 0 and higher ASCII. There were issues when the following character was [0-9A-Z] and the spec points out that this is a 7-character data extension.

wsmitchell3 commented 6 years ago

This behavior was consistent with the 1.2 spec, upon further review.

TheCranston commented 3 years ago

Actually I believe @wsmitchell3 update is correct. As the current code stands it will consume the PHGxyyz AND the first char of the comment field if present. Please re-evaluate this PR and consider it for inclusion. Thanks!