summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-03 13:46:58 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-03 13:46:58 +0000
commit10c4e65e6be0edc3a93e42ccd2bd468dba0a340c (patch)
tree40dbf723575961a15b5413f892d716f51ca570d3 /driver_superstar2.c
parent2a22287cc823558cbf1bc46cb3f01618f1e65018 (diff)
downloadgpsd-10c4e65e6be0edc3a93e42ccd2bd468dba0a340c.tar.gz
Break the cycle-start flag out of general status mask into its own field.
Refactoring step, no behavior changes. All regression tests pass.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r--driver_superstar2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c
index f95197f6..e5c68463 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -144,8 +144,8 @@ superstar2_msg_navsol_lla(struct gps_device_t *session,
session->gpsdata.fix.mode = MODE_NO_FIX;
}
- /* CYCLE_START_SET if this message starts a reporting period */
- mask |= MODE_SET | STATUS_SET | CYCLE_START_SET ;
+ session->cycle_state = cycle_start;
+ mask |= MODE_SET | STATUS_SET ;
return mask;
}
@@ -218,8 +218,8 @@ superstar2_msg_navsol_ecef(struct gps_device_t *session,
session->gpsdata.fix.mode = MODE_NO_FIX;
}
- /* CYCLE_START_SET if this message starts a reporting period */
- mask |= MODE_SET | STATUS_SET | CYCLE_START_SET;
+ session->cycle_state = cycle_start;
+ mask |= MODE_SET | STATUS_SET;
return mask;
}