summaryrefslogtreecommitdiff
path: root/driver_zodiac.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_zodiac.c
parent824b564bb06ac70ac9d9b6fad3564a665ff88e2c (diff)
downloadgpsd-1b79d072cc4eea5b12648aba45dd33cc746174d6.tar.gz
Collapse various copies of gps_week into one in gps_contxt_t.
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 9d13f6f4..1aafc90a 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -152,7 +152,7 @@ static gps_mask_t handle1000(struct gps_device_t *session)
/* solution_type = getzword(11); */
session->gpsdata.satellites_used = (int)getzword(12);
/* polar_navigation = getzword(13); */
- /* gps_week = getzword(14); */
+ session->context->gps_week = getzword(14);
/* gps_seconds = getzlong(15); */
/* gps_nanoseconds = getzlong(17); */
unpacked_date.tm_mday = (int)getzword(19);
@@ -252,6 +252,7 @@ static gps_mask_t handle1002(struct gps_device_t *session)
int gps_seconds = getzlong(11);
/* gps_nanoseconds = getzlong(13); */
/*@-charint@*/
+ session->context->gps_week = gps_week;
session->gpsdata.satellites_used = 0;
memset(session->gpsdata.used, 0, sizeof(session->gpsdata.used));
for (i = 0; i < ZODIAC_CHANNELS; i++) {