This commit is contained in:
KF7EEL 2021-01-12 09:59:53 -08:00
parent 03fd6a7a0c
commit 1900923246

View File

@ -434,7 +434,7 @@ class DATA_SYSTEM(HBSYSTEM):
sms_hex = str(ba2hx(bitarray(re.sub("\)|\(|bitarray|'", '', packet_assembly))))
sms_hex_string = re.sub("b'|'", '', str(sms_hex))
#NMEA GPS sentence
if '$GPRMC' in final_packet or if '$GNRMC' in final_packet:
if '$GPRMC' in final_packet or '$GNRMC' in final_packet:
logger.info(final_packet + '\n')
nmea_parse = re.sub('A\*.*|.*\$', '', str(final_packet))
loc = pynmea2.parse(nmea_parse, check=False)