summaryrefslogtreecommitdiff
path: root/driver_italk.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2010-04-16 16:40:55 -0700
committerGary E. Miller <gem@rellim.com>2010-04-16 16:40:55 -0700
commit1b79d072cc4eea5b12648aba45dd33cc746174d6 (patch)
tree6118b29905130559ad15427032573cce19da59ac /driver_italk.c
parent824b564bb06ac70ac9d9b6fad3564a665ff88e2c (diff)
downloadgpsd-1b79d072cc4eea5b12648aba45dd33cc746174d6.tar.gz
Collapse various copies of gps_week into one in gps_contxt_t.
Diffstat (limited to 'driver_italk.c')
-rw-r--r--driver_italk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver_italk.c b/driver_italk.c
index 9cd2e8cf..44aa6a18 100644
--- a/driver_italk.c
+++ b/driver_italk.c
@@ -61,6 +61,7 @@ static gps_mask_t decode_itk_navfix(struct gps_device_t *session,
return mask;
gps_week = (ushort) getlesw(buf, 7 + 82);
+ session->context->gps_week = gps_week;
tow = (uint) getleul(buf, 7 + 84);
t = gpstime_to_unix((int)gps_week,
tow / 1000.0) - session->context->leap_seconds;
@@ -135,6 +136,7 @@ static gps_mask_t decode_itk_prnstatus(struct gps_device_t *session,
mask = ERROR_IS;
} else {
gps_week = (ushort) getleuw(buf, 7 + 4);
+ session->context->gps_week = gps_week;
tow = (uint) getleul(buf, 7 + 6);
t = gpstime_to_unix((int)gps_week,
tow / 1000.0) - session->context->leap_seconds;
@@ -198,6 +200,7 @@ static gps_mask_t decode_itk_utcionomodel(struct gps_device_t *session,
session->context->leap_seconds = leap;
gps_week = (ushort) getleuw(buf, 7 + 36);
+ session->context->gps_week = gps_week;
tow = (uint) getleul(buf, 7 + 38);
t = gpstime_to_unix((int)gps_week,
tow / 1000.0) - session->context->leap_seconds;