summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
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);