summaryrefslogtreecommitdiff
path: root/garmin.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-27 04:11:50 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-27 04:11:50 +0000
commitda5ae7e4a32aa92b7fcf0a3ea38d47e56fc5711c (patch)
tree182febf44ca0950b430df1704ee9d595e17bc0a8 /garmin.c
parent04c85e2421bf3b991ef248a000d305f9446c4ace (diff)
downloadgpsd-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/garmin.c b/garmin.c
index f0ad1c9e..5aa70ba2 100644
--- a/garmin.c
+++ b/garmin.c
@@ -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 */