From c369d5418e87817996f6aa8e773e48a33bb9c719 Mon Sep 17 00:00:00 2001 From: Joshua Roys Date: Tue, 3 Jan 2017 17:10:09 -0500 Subject: Fix reported time from Trimble devices The sign of an exponent was reversed in commit 0e7ff3d causing reported times to rapidly alternate between the correct time and the far future. --- driver_tsip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_tsip.c') diff --git a/driver_tsip.c b/driver_tsip.c index 73c6f240..ed1e5e5f 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -868,7 +868,7 @@ static gps_mask_t tsip_parse_input(struct gps_device_t *session) } session->newdata.time = gpsd_gpstime_resolve(session, - (unsigned short)s1, (double)ul1 *1e3); + (unsigned short)s1, (double)ul1 *1e-3); session->gpsdata.status = STATUS_NO_FIX; session->newdata.mode = MODE_NO_FIX; if ((u2 & 0x01) == (uint8_t) 0) { /* Fix Available */ -- cgit v1.2.1