summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-08 10:23:32 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-08 10:23:32 -0400
commit93f417401f02b85e936d93cf5f7ba54d75de49de (patch)
treedc26b8d52b09aeafdcc19a58b1eb0e01a5d4ad8c /driver_ubx.c
parentc492d91075cbb10c13b2670a8d63e0dae1014ec4 (diff)
downloadgpsd-93f417401f02b85e936d93cf5f7ba54d75de49de.tar.gz
One of the float-elimination steps busted something. Revert.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 932d5d64..350f4990 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -94,8 +94,7 @@ 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 = (timestamp_t)gpsd_gpstime_resolve(session,
- gw, tow / 1000.0);
+ session->newdata.time = gpsd_gpstime_resolve(session, gw, tow / 1000.0);
mask |= TIME_SET | PPSTIME_IS;
}
@@ -224,7 +223,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 = (timestamp_t)gpsd_gpstime_resolve(session,
+ session->newdata.time = gpsd_gpstime_resolve(session,
(unsigned short int)gw,
(double)tow / 1000.0);