Browse Source

Merge branch 'master' of ssh://git.black-mesa.xyz:434/langspielplatte/measurement-scripts

master
Lukas Prause 3 years ago
parent
commit
d5ed4efca8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      measurement_main.py

+ 1
- 1
measurement_main.py View File

while ser.is_open: while ser.is_open:
nmea_sentence = ser.readline() #GPRMC nmea_sentence = ser.readline() #GPRMC
nmea_str = nmea_sentence.decode("utf-8") nmea_str = nmea_sentence.decode("utf-8")
if nmea_str.startswith("$GPGGA"):
if nmea_str.startswith("$GPRMC"):
write_to_file(output_file, nmea_str) write_to_file(output_file, nmea_str)
except: except:
if not ser.is_open: if not ser.is_open:

Loading…
Cancel
Save