diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 14:20:39 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-03 14:20:39 +0000 |
commit | 4d7853c6bd047f2e64754590411adf4fb6ba4b88 (patch) | |
tree | 65fbcacc14d90200ad7864d7e305cd927ee03ee5 /driver_garmin_txt.c | |
parent | 10c4e65e6be0edc3a93e42ccd2bd468dba0a340c (diff) | |
download | gpsd-4d7853c6bd047f2e64754590411adf4fb6ba4b88.tar.gz |
Now make it possible for a driver to signal cycle start, cycle end, ...
and the fact that its cycle end indication is reliable. All
regression tests pass.
Diffstat (limited to 'driver_garmin_txt.c')
-rw-r--r-- | driver_garmin_txt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver_garmin_txt.c b/driver_garmin_txt.c index 505bbd85..2b607d2e 100644 --- a/driver_garmin_txt.c +++ b/driver_garmin_txt.c @@ -285,7 +285,8 @@ gps_mask_t garmintxt_parse(struct gps_device_t *session) /* TAG message as GTXT, Garmin Simple Text Message */ strncpy(session->gpsdata.tag, "GTXT", MAXTAGLEN); - session->cycle_state = cycle_start; /* only one message, set cycle start */ + /* only one message, set cycle start */ + session->cycle_state |= CYCLE_END_RELIABLE | CYCLE_START | CYCLE_END; do { unsigned int result; char *buf = (char *)session->packet.outbuffer+1; |