Просмотр исходного кода

Fix formatin of GPS String.

master
Lukas Prause 3 лет назад
Родитель
Сommit
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.")

Загрузка…
Отмена
Сохранить