Skip to content

Commit

Permalink
gps: fixup - replace int by float for age of correction
Browse files Browse the repository at this point in the history
  • Loading branch information
tajgr committed Jun 18, 2024
1 parent aec0bce commit 9a22eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osgar/drivers/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_nmea(line):
nmea_data["a-units"] = None if nmea_list[10] == "" else nmea_list[10]
nmea_data["undulation"] = None if nmea_list[11] == "" else float(nmea_list[11])
nmea_data["u-units"] = None if nmea_list[12] == "" else nmea_list[12]
nmea_data["age"] = None if nmea_list[13] == "" else int(nmea_list[13])
nmea_data["age"] = None if nmea_list[13] == "" else float(nmea_list[13])
stn_id = nmea_list[14].split("*")[0]
nmea_data["stn_id"] = None if stn_id == "" else stn_id
except Exception as e:
Expand Down

0 comments on commit 9a22eee

Please sign in to comment.