From 68d54c2dac8e2d082f0326cdcf56c31e70203300 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 18 Mar 2019 16:37:42 -0700 Subject: driver_nmea0183: Fix 32/64 bug in cycle enders. Long standing bug, that became obvious when more NMEA decodes were added. A 32 bit mask used to index into a 40 member array.o Also fix over agressive mode setting on $PSRFEPE. --- gpsd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gpsd.h') diff --git a/gpsd.h b/gpsd.h index bc3cb2f8..1ea2b27e 100644 --- a/gpsd.h +++ b/gpsd.h @@ -582,8 +582,8 @@ struct gps_device_t { */ timestamp_t this_frac_time, last_frac_time; bool latch_frac_time; - unsigned long lasttag; - unsigned long cycle_enders; + int lasttag; /* index into nmea_phrase[] */ + uint64_t cycle_enders; /* bit map into nmea_phrase{} */ bool cycle_continue; } nmea; #endif /* NMEA0183_ENABLE */ -- cgit v1.2.1