From 1b79d072cc4eea5b12648aba45dd33cc746174d6 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Fri, 16 Apr 2010 16:40:55 -0700 Subject: Collapse various copies of gps_week into one in gps_contxt_t. --- driver_zodiac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'driver_zodiac.c') 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++) { -- cgit v1.2.1