summaryrefslogtreecommitdiff
path: root/ao_gps_report.c
diff options
context:
space:
mode:
Diffstat (limited to 'ao_gps_report.c')
-rw-r--r--ao_gps_report.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ao_gps_report.c b/ao_gps_report.c
index 494714b6..1b5402a8 100644
--- a/ao_gps_report.c
+++ b/ao_gps_report.c
@@ -29,6 +29,9 @@ ao_gps_report(void)
memcpy(&gps_data, &ao_gps_data, sizeof (struct ao_gps_data));
ao_mutex_put(&ao_gps_mutex);
+ if (!(gps_data.flags & AO_GPS_VALID))
+ continue;
+
gps_log.tick = ao_time();
gps_log.type = AO_LOG_GPS_TIME;
gps_log.u.gps_time.hour = gps_data.hour;