浏览代码

Fix formatin of GPS String.

master
Lukas Prause 3 年前
父节点
当前提交
f06dad1281
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      measurement_main.py

+ 1
- 1
measurement_main.py 查看文件

@@ -306,7 +306,7 @@ def monitor_gps(ser, output_file):
time_epoch = subprocess.check_output(CMD_TIME_EPOCH, shell=True).decode(
"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:
if not ser.is_open:
print_message("GPS serial port is closed. Exit monitoring thread.")

正在加载...
取消
保存