summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-05 16:27:19 -0800
committerGary E. Miller <gem@rellim.com>2018-11-05 16:27:19 -0800
commitabf833f9cca0a0e4f1cff0fc424f9a5960f3be5c (patch)
tree39599ae9d85ac02276ceed9a83d30c48c46b7094 /driver_ubx.c
parent84baac4fc1f8e728c8eabe882d9ae1c247211b7e (diff)
downloadgpsd-abf833f9cca0a0e4f1cff0fc424f9a5960f3be5c.tar.gz
rawdata: Note mtime is UTC, not GPS time
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 e079e2aa..1fb4435e 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -832,6 +832,7 @@ static gps_mask_t ubx_rxm_rawx(struct gps_device_t *session,
"UBX_RXM_RAWX: rcvTow %f week %u leapS %d numMeas %u recStat %d\n",
rcvTow, week, leapS, numMeas, recStat);
+ /* covert GPS weeks and TOW to UTC */
session->newdata.time = gpsd_gpstime_resolve(session, week, rcvTow);
session->gpsdata.raw.mtime.tv_nsec =
modf(session->newdata.time, &t_intp) * 10e8;