summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-10-02 15:56:08 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-10-02 15:56:08 +0000
commita0023da1ea2b268830d981de3b3b5b2cf6058612 (patch)
tree6a3334a9b6f72643f6d60facd416d7dd17196b16 /gpsd.h-tail
parent34574031fb921a546325b5339c917d64ae6c58f8 (diff)
downloadgpsd-a0023da1ea2b268830d981de3b3b5b2cf6058612.tar.gz
The new instrumentation pays off.
On NMEA devices, mode could sometimes be held across cycles when it shouldn't have been. Fix this, simplifying how cycles are tracked in the process. Some regression tests needed rebuilding. Code splints clean.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail5
1 files changed, 1 insertions, 4 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 5124533a..ca6b00d4 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -250,10 +250,7 @@ struct gps_device_t {
char msgbuf[MAX_PACKET_LENGTH*2+1]; /* command message buffer for sends */
size_t msgbuflen;
int observed; /* which packet type`s have we seen? */
- bool cycle_end_reliable; /* does driverr signal CYCLE_END */
- int cycle_state;
-#define CYCLE_START 0x01 /* sentence starts a reporting cycle */
-#define CYCLE_END 0x02 /* sentence ends a reporting cycle */
+ bool cycle_end_reliable; /* does driverr signal REPORT_SET */
/*
* The rest of this structure is driver-specific private storage.
* Because the Garmin driver uses a long buffer, you can have