diff options
author | Gary E. Miller <gem@rellim.com> | 2010-04-16 16:40:55 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2010-04-16 16:40:55 -0700 |
commit | 1b79d072cc4eea5b12648aba45dd33cc746174d6 (patch) | |
tree | 6118b29905130559ad15427032573cce19da59ac /driver_superstar2.c | |
parent | 824b564bb06ac70ac9d9b6fad3564a665ff88e2c (diff) | |
download | gpsd-1b79d072cc4eea5b12648aba45dd33cc746174d6.tar.gz |
Collapse various copies of gps_week into one in gps_contxt_t.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r-- | driver_superstar2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c index 9cc9623b..5e9299f7 100644 --- a/driver_superstar2.c +++ b/driver_superstar2.c @@ -196,8 +196,8 @@ superstar2_msg_navsol_ecef(struct gps_device_t *session, /* extract time data */ tow = getled(buf, 4); - session->driver.superstar2.gps_week = getleuw(buf, 12); - tm = gpstime_to_unix((int)session->driver.superstar2.gps_week, tow) - + session->context->gps_week = getleuw(buf, 12); + tm = gpstime_to_unix((int)session->context->gps_week, tow) - session->context->leap_seconds; session->newdata.time = tm; mask |= TIME_IS; |