summaryrefslogtreecommitdiff
path: root/driver_garmin.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-07 14:10:45 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-07 14:10:45 +0000
commitabeb84381e32b4795b670b8b68ba61c5cf189ef3 (patch)
treed7895480b56c42597096b9bcd233155c0e3c8244 /driver_garmin.c
parent45238dc94b0a807a17aff9949640e7254e37b8d6 (diff)
downloadgpsd-abeb84381e32b4795b670b8b68ba61c5cf189ef3.tar.gz
Remove 'cycle' member from device structure.
It was only ever being set to constant 1. Instead, we keep the current cycle in gpsdata and initialize it in gpsd_init(). This makes no behavioral changes, but clears the decks for better handling of rate switchers.
Diffstat (limited to 'driver_garmin.c')
-rw-r--r--driver_garmin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/driver_garmin.c b/driver_garmin.c
index 44fe1e2d..b968c13b 100644
--- a/driver_garmin.c
+++ b/driver_garmin.c
@@ -1213,7 +1213,6 @@ const struct gps_type_t garmin_usb_binary =
.revert = NULL, /* no setting-reversion method */
#endif /* ALLOW_RECONFIGURE */
.wrapup = garmin_close, /* close hook */
- .cycle = 1, /* updates every second */
};
const struct gps_type_t garmin_ser_binary =
@@ -1240,7 +1239,6 @@ const struct gps_type_t garmin_ser_binary =
.revert = NULL, /* no setting-reversion method */
#endif /* ALLOW_RECONFIGURE */
.wrapup = NULL, /* close hook */
- .cycle = 1, /* updates every second */
};
#endif /* GARMIN_ENABLE */