summaryrefslogtreecommitdiff
path: root/driver_tsip.c
diff options
context:
space:
mode:
authorJoshua Roys <roysjosh@gmail.com>2017-01-03 17:10:09 -0500
committerEric S. Raymond <esr@thyrsus.com>2017-09-05 21:23:23 -0400
commitc369d5418e87817996f6aa8e773e48a33bb9c719 (patch)
tree88bf92b36603e27a11d31ed255b158678e8f47c9 /driver_tsip.c
parent9bc5e34d886379e3bba67d7c421cd37c19e92b67 (diff)
downloadgpsd-c369d5418e87817996f6aa8e773e48a33bb9c719.tar.gz
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.
Diffstat (limited to 'driver_tsip.c')
-rw-r--r--driver_tsip.c2
1 files changed, 1 insertions, 1 deletions
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 */