ソースを参照

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.")

読み込み中…
キャンセル
保存