summaryrefslogtreecommitdiff
path: root/driver_navcom.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_navcom.c
parentc492d91075cbb10c13b2670a8d63e0dae1014ec4 (diff)
downloadgpsd-93f417401f02b85e936d93cf5f7ba54d75de49de.tar.gz
One of the float-elimination steps busted something. Revert.
Diffstat (limited to 'driver_navcom.c')
-rw-r--r--driver_navcom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_navcom.c b/driver_navcom.c
index 2a59c38c..5554f03b 100644
--- a/driver_navcom.c
+++ b/driver_navcom.c
@@ -404,7 +404,7 @@ static gps_mask_t handle_0xb1(struct gps_device_t *session)
/* Timestamp */
week = (uint16_t) getleu16(buf, 3);
tow = (uint32_t) getleu32(buf, 5);
- session->newdata.time = (timestamp_t)gpsd_gpstime_resolve(session, week, tow / 1000.0);
+ session->newdata.time = gpsd_gpstime_resolve(session, week, tow / 1000.0);
/* Get latitude, longitude */
lat = getles32(buf, 13);
@@ -714,7 +714,7 @@ static gps_mask_t handle_0x86(struct gps_device_t *session)
//uint8_t pdop = getub(buf, 15);
/* Timestamp */
- session->gpsdata.skyview_time = (timestamp_t)gpsd_gpstime_resolve(session,
+ session->gpsdata.skyview_time = gpsd_gpstime_resolve(session,
(unsigned short)week,
(double)tow / 1000.0f);
@@ -929,7 +929,7 @@ static gps_mask_t handle_0xb5(struct gps_device_t *session)
session->newdata.epv = alt_sd * 1.96;
mask |= (HERR_SET | VERR_SET);
#endif /* __UNUSED__ */
- session->newdata.time = (timestamp_t)gpsd_gpstime_resolve(session,
+ session->newdata.time = gpsd_gpstime_resolve(session,
(unsigned short)week,
(double)tow / 1000.0f);
gpsd_log(&session->context->errout, LOG_PROG,