From 19009232460b3857d5509e7c8f3087f64c68dc19 Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Tue, 12 Jan 2021 09:59:53 -0800 Subject: [PATCH] fix typo --- gps_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gps_data.py b/gps_data.py index a5cbd79..f683b53 100644 --- a/gps_data.py +++ b/gps_data.py @@ -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)