summaryrefslogtreecommitdiff
path: root/tsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-14 07:28:44 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-14 07:28:44 +0000
commitd3eff5b06eccf4ef3e52fcaf8b18fda31870b0a4 (patch)
treeffcc5e69b7b985c7ccc8b80fb66bf930a9dbece2 /tsip.c
parent8ceb9ed4cfebc51d2fdd7617f4fab313a2fde9a8 (diff)
downloadgpsd-d3eff5b06eccf4ef3e52fcaf8b18fda31870b0a4.tar.gz
Split wrapup method into revert and wrapup. The revert method is onlt called
if configuration is enabled.
Diffstat (limited to 'tsip.c')
-rw-r--r--tsip.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tsip.c b/tsip.c
index 79b11dae..669d4b4f 100644
--- a/tsip.c
+++ b/tsip.c
@@ -81,6 +81,7 @@ static void tsip_probe_subtype(struct gps_device_t *session, unsigned int seq)
}
}
+#ifdef ALLOW_RECONFIGURE
static void tsip_configurator(struct gps_device_t *session)
{
unsigned char buf[100];
@@ -92,6 +93,7 @@ static void tsip_configurator(struct gps_device_t *session)
putbyte(buf,3,0x08); /* Aux: dBHz */
(void)tsip_write(session->gpsdata.gps_fd, 0x35, buf, 4);
}
+#endif /* ALLOW_RECONFIGURE */
static void tsip_wrapup(struct gps_device_t *session)
{
@@ -717,7 +719,9 @@ struct gps_type_t tsip_binary =
.probe_wakeup = NULL, /* no wakeup to be done before hunt */
.probe_detect = NULL, /* no probe */
.probe_subtype = tsip_probe_subtype, /* no more subtype discovery */
+#ifdef ALLOW_RECONFIGURE
.configurator = tsip_configurator,/* initial mode sets */
+#endif /* ALLOW_RECONFIGURE */
.get_packet = packet_get, /* use the generic packet getter */
.parse_packet = tsip_parse_input, /* parse message packets */
.rtcm_writer = NULL, /* doesn't accept DGPS corrections */
@@ -725,6 +729,9 @@ struct gps_type_t tsip_binary =
.mode_switcher = NULL, /* no mode switcher */
.rate_switcher = NULL, /* no rate switcher */
.cycle_chars = -1, /* not relevant, no rate switcher */
+#ifdef ALLOW_RECONFIGURE
+ .revert = NULL, /* FIXME: revert sentence mix */
+#endif /* ALLOW_RECONFIGURE */
.wrapup = tsip_wrapup, /* restore comms parameters */
.cycle = 1, /* updates every second */
};