summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-10 09:27:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-10 09:27:39 -0400
commitcd3e193a4e63281a431d58c47238aed3d9996e0b (patch)
treec560fd25c10356b22c54d3fc77aa5b94afa1762a /drivers.c
parent5af93d5212d0c1b0c352f98830e61a8e61972617 (diff)
downloadgpsd-cd3e193a4e63281a431d58c47238aed3d9996e0b.tar.gz
TNT probe logic for sample mode has to be conditioned out, it's still broken.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers.c b/drivers.c
index 7373d5d3..07ee7c8d 100644
--- a/drivers.c
+++ b/drivers.c
@@ -601,6 +601,8 @@ static const struct gps_type_t earthmate = {
*
**************************************************************************/
+/* for now, only supporting run mode */
+#ifdef SAMPLE_MODE_SUPPORTED
enum {
#include "packet_states.h"
};
@@ -647,7 +649,7 @@ static int tnt_send(int fd, const char *fmt, ... )
#define TNT_SNIFF_RETRIES 100
/*
- * The True North compass won't start talking
+ * In sample mode, the True North compass won't start talking
* unless you ask it to. So to identify it we
* need to query for its ID string.
*/
@@ -734,17 +736,18 @@ static bool tnt_probe(struct gps_device_t *session)
}
return false;
}
+#endif /* SAMPLE_MODE_SUPPORTED */
static const struct gps_type_t trueNorth = {
.type_name = "True North", /* full name of type */
.packet_type = NMEA_PACKET, /* associated lexer packet type */
.trigger = " TNT1500",
.channels = 0, /* not an actual GPS at all */
- .probe_detect = tnt_probe, /* probe by sending ID query */
+ .probe_detect = NULL, /* probe by sending ID query */
.get_packet = generic_get, /* how to get a packet */
.parse_packet = nmea_parse_input, /* how to interpret a packet */
.rtcm_writer = NULL, /* Don't send */
- .event_hook = tnt_event_hook, /* lifetime event handler */
+ .event_hook = NULL, /* lifetime event handler */
#ifdef ALLOW_RECONFIGURE
.speed_switcher = NULL, /* no speed switcher */
.mode_switcher = NULL, /* no mode switcher */