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 /evermore.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 'evermore.c')
-rw-r--r-- | evermore.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -603,16 +603,18 @@ static void evermore_mode(struct gps_device_t *session, int mode) } } -static void evermore_configurator(struct gps_device_t *session) +static void evermore_configurator(struct gps_device_t *session, unsigned int seq) { - gpsd_report(LOG_PROG, "evermore_configurator call\n"); - if (session->packet_type == NMEA_PACKET) { - gpsd_report(LOG_WARN, "NMEA_PACKET packet\n"); - } + if (seq == 0) { + gpsd_report(LOG_PROG, "evermore_configurator call\n"); + if (session->packet_type == NMEA_PACKET) { + gpsd_report(LOG_WARN, "NMEA_PACKET packet\n"); + } #ifdef ALLOW_RECONFIGURE - (void)evermore_default(session, 1); /* switch GPS to binary mode */ - session->back_to_nmea = true; + (void)evermore_default(session, 1); /* switch GPS to binary mode */ + session->back_to_nmea = true; #endif /* ALLOW_RECONFIGURE */ + } } #ifdef __UNUSED__ |