From a0023da1ea2b268830d981de3b3b5b2cf6058612 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 2 Oct 2009 15:56:08 +0000 Subject: 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. --- gpsd.h-tail | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gpsd.h-tail') 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 -- cgit v1.2.1