diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-12 07:48:25 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-12 07:48:25 -0400 |
commit | 5fbf141bec04172e30cb428d19a5d9128d0f8537 (patch) | |
tree | ec091069b2850584d89b0db8242f11d5fde8a63c | |
parent | 40c40cc4f142b1532efd192d9cb7e2f3500a7c39 (diff) | |
download | gpsd-5fbf141bec04172e30cb428d19a5d9128d0f8537.tar.gz |
Enrich the driver method listing. Shorten an overly long name.
-rw-r--r-- | drivers.c | 2 | ||||
-rw-r--r-- | test_packet.c | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -626,7 +626,7 @@ static void earthmate_event_hook(struct gps_device_t *session, event_t event) /*@ -redef @*/ /* *INDENT-OFF* */ static const struct gps_type_t earthmate = { - .type_name = "Delorme EarthMate (pre-2003, Zodiac chipset)", + .type_name = "Pre-2003 Delorme EarthMate", .packet_type = NMEA_PACKET, /* associated lexer packet type */ .flags = DRIVER_NOFLAGS, /* no rollover or other flags */ .trigger = "EARTHA", /* Earthmate trigger string */ diff --git a/test_packet.c b/test_packet.c index adab686b..30a557d8 100644 --- a/test_packet.c +++ b/test_packet.c @@ -349,6 +349,10 @@ static int property_check(void) (void)fputs("trigger\t", stdout); else (void)fputs(".\t", stdout); + if ((*dp)->probe_detect != NULL) + (void)fputs("probe\t", stdout); + else + (void)fputs(".\t", stdout); #ifdef CONTROLSEND_ENABLE if ((*dp)->control_send != NULL) (void)fputs("send\t", stdout); @@ -366,6 +370,7 @@ static int property_check(void) for (dp = gpsd_drivers; *dp; dp++) { if ((*dp)->packet_type == COMMENT_PACKET) continue; +#ifdef CONTROLSEND_ENABLE if (CONFIGURABLE(*dp) && (*dp)->control_send == NULL) { (void)fprintf(stderr, "%s has control methods but no send\n", (*dp)->type_name); @@ -376,6 +381,7 @@ static int property_check(void) (*dp)->type_name); status = EXIT_FAILURE; } +#endif /* CONTROLSEND_ENABLE */ } return status; |