summaryrefslogtreecommitdiff
path: root/driver_proto.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-17 10:56:32 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-17 10:56:32 -0500
commitf12d1b2a532f5540ab43309a8c5e658329f5df71 (patch)
tree2d433bf85f16f538b409183a3e6ea2f25289609b /driver_proto.c
parent3307f9c53771f39873aad7ceec1ff09bd100b108 (diff)
downloadgpsd-f12d1b2a532f5540ab43309a8c5e658329f5df71.tar.gz
Introduce GPS_TIME_VALID flag for GPS time validation.
Diffstat (limited to 'driver_proto.c')
-rw-r--r--driver_proto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_proto.c b/driver_proto.c
index 74ef6750..f7cbec86 100644
--- a/driver_proto.c
+++ b/driver_proto.c
@@ -154,6 +154,7 @@ _proto__msg_utctime(struct gps_device_t *session, unsigned char *buf, size_t dat
session->context->gps_week = gps_week;
session->context->leap_seconds = GET_GPS_LEAPSECONDS();
session->context->gps_tow = tow / 1000.0;
+ session->context->valid |= GPS_TIME_VALID
t = gpstime_to_unix(gps_week, session->context->gps_tow)
- session->context->leap_seconds;