summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2010-04-18 21:23:42 -0700
committerGary E. Miller <gem@rellim.com>2010-04-18 21:23:42 -0700
commit0e7ff3dcd0e44e9b0b556e1770cc55e6ac723d68 (patch)
treeb9c4ce369c11e4b91714e1c3cd582e38fbae6ad6 /driver_zodiac.c
parent948770e120fe7028ed0f65c539b9dda129ee2a31 (diff)
downloadgpsd-0e7ff3dcd0e44e9b0b556e1770cc55e6ac723d68.tar.gz
Eliminate a lot of private copies of gps_tow for one global copy in
sesion->context.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r--driver_zodiac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index 58537dc1..f2a8d496 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -241,8 +241,9 @@ static gps_mask_t handle1002(struct gps_device_t *session)
}
}
session->context->gps_week = gps_week;
+ session->context->gps_tow = (double) gps_seconds;
session->gpsdata.skyview_time =
- gpstime_to_unix(gps_week, (double)gps_seconds);
+ gpstime_to_unix(gps_week, session->context->gps_tow);
gpsd_report(LOG_DATA, "1002: visible=%d used=%d mask={SATELLITE|USED}\n",
session->gpsdata.satellites_visible,
session->gpsdata.satellites_used);