summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-05 18:46:01 -0800
committerGary E. Miller <gem@rellim.com>2018-11-05 18:46:01 -0800
commite5fdf82ff4767d09d5b9472131c0426ac06c8674 (patch)
treef030397d915483f623564e0f4ad3c61a19873396 /driver_ubx.c
parent0efea9b5b4e0ef0de100532630e8d10f2ef5eaaf (diff)
downloadgpsd-e5fdf82ff4767d09d5b9472131c0426ac06c8674.tar.gz
TPV: Add leapseconds to TPV JSON.
Most current gpsd drivers do not report leap seconds.
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)