From e5fdf82ff4767d09d5b9472131c0426ac06c8674 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 5 Nov 2018 18:46:01 -0800 Subject: TPV: Add leapseconds to TPV JSON. Most current gpsd drivers do not report leap seconds. --- driver_ubx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'driver_ubx.c') 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) -- cgit v1.2.1