cgpsd: use hasFix

old-commit-hash: bfd6ab68b5fb65da10b4c5c70c5b5782c998d4fe
This commit is contained in:
Adeeb Shihadeh
2024-03-08 13:29:42 -08:00
parent 777d37b619
commit 294e055d8b
+1 -1
View File
@@ -83,7 +83,7 @@ def main():
dt = datetime.datetime.strptime(f"{date} {gnrmc[1]}", '%d%m%y %H%M%S.%f')
gps.unixTimestampMillis = dt.timestamp()*1e3
gps.flags = 1 if gnrmc[1] == 'A' else 0
gps.hasFix = gnrmc[1] == 'A'
# TODO: make our own source
gps.source = log.GpsLocationData.SensorSource.qcomdiag