diff options
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 350f4990..932d5d64 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -94,7 +94,8 @@ ubx_msg_nav_sol(struct gps_device_t *session, unsigned char *buf, unsigned int tow; tow = (unsigned int)getleu32(buf, 0); gw = (unsigned short)getles16(buf, 8); - session->newdata.time = gpsd_gpstime_resolve(session, gw, tow / 1000.0); + session->newdata.time = (timestamp_t)gpsd_gpstime_resolve(session, + gw, tow / 1000.0); mask |= TIME_SET | PPSTIME_IS; } @@ -223,7 +224,7 @@ ubx_msg_nav_timegps(struct gps_device_t *session, unsigned char *buf, flags = (unsigned int)getub(buf, 11); if ((flags & 0x7) != 0) session->context->leap_seconds = (int)getub(buf, 10); - session->newdata.time = gpsd_gpstime_resolve(session, + session->newdata.time = (timestamp_t)gpsd_gpstime_resolve(session, (unsigned short int)gw, (double)tow / 1000.0); |