Fix formatin of GPS String.

This commit is contained in:
Lukas Prause
2022-12-13 12:21:04 +01:00
parent 90023312dc
commit f06dad1281

View File

@@ -306,7 +306,7 @@ def monitor_gps(ser, output_file):
time_epoch = subprocess.check_output(CMD_TIME_EPOCH, shell=True).decode( time_epoch = subprocess.check_output(CMD_TIME_EPOCH, shell=True).decode(
"utf-8" "utf-8"
) )
write_to_file(output_file, "{},{}".format(nmea_str, time_epoch)) write_to_file(output_file, "{},{}".format(nmea_str.replace("\n", ""), time_epoch))
except: except:
if not ser.is_open: if not ser.is_open:
print_message("GPS serial port is closed. Exit monitoring thread.") print_message("GPS serial port is closed. Exit monitoring thread.")