diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-27 04:11:50 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-27 04:11:50 +0000 |
commit | da5ae7e4a32aa92b7fcf0a3ea38d47e56fc5711c (patch) | |
tree | 182febf44ca0950b430df1704ee9d595e17bc0a8 /garmin.c | |
parent | 04c85e2421bf3b991ef248a000d305f9446c4ace (diff) | |
download | gpsd-da5ae7e4a32aa92b7fcf0a3ea38d47e56fc5711c.tar.gz |
Change the configurator method to take a packet sequence number argument...
...the same way probe_subtype does, and for the same reason.
Diffstat (limited to 'garmin.c')
-rw-r--r-- | garmin.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -794,8 +794,9 @@ static void garmin_probe_subtype(struct gps_device_t *session, unsigned int seq) * any twiddling of that previously done is harmless. * */ -static void garmin_configure(struct gps_device_t *session) +static void garmin_configure(struct gps_device_t *session, int unsigned seq) { + if (seq == 0) { // turn on PVT data 49 gpsd_report(LOG_PROG, "Set Garmin to send reports every 1 second\n"); @@ -808,6 +809,7 @@ static void garmin_configure(struct gps_device_t *session) Build_Send_SER_Packet(session, GARMIN_LAYERID_APPL , GARMIN_PKTID_L001_COMMAND_DATA, 2, CMND_START_RM_DATA); #endif + } } #endif /* ALLOW_RECONFIGURE */ |