summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 4441b956..d1199455 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -480,6 +480,7 @@ ubx_msg_nav_timegps(struct gps_device_t *session, unsigned char *buf,
if ((valid & UBX_TIMEGPS_VALID_LEAP_SECOND) ==
UBX_TIMEGPS_VALID_LEAP_SECOND) {
session->context->leap_seconds = (int)getub(buf, 10);
+ session->context->valid |= LEAP_SECOND_VALID;
}
// Valid GPS time of week and week number
#define VALID_TIME (UBX_TIMEGPS_VALID_TIME | UBX_TIMEGPS_VALID_WEEK)