diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-04-10 09:27:39 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-04-10 09:27:39 -0400 |
commit | cd3e193a4e63281a431d58c47238aed3d9996e0b (patch) | |
tree | c560fd25c10356b22c54d3fc77aa5b94afa1762a /drivers.c | |
parent | 5af93d5212d0c1b0c352f98830e61a8e61972617 (diff) | |
download | gpsd-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.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 */ |