summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-11-15 22:02:56 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-11-15 22:02:56 +0000
commitc2ee428b9406540f1ed65cdf9ce87725abd7314e (patch)
treeb6c65a23bfccac5a350f540a47695bbf23eaa05e /drivers.c
parenta51e2b9f8e9bf028872fa4401a40e08339ccedbc (diff)
downloadgpsd-c2ee428b9406540f1ed65cdf9ce87725abd7314e.tar.gz
FV18 is just funky NMEA, so we require generic NMEA support when using FV18.
Allow the garmin stuff to compile without NMEA
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers.c b/drivers.c
index 80458735..06209d70 100644
--- a/drivers.c
+++ b/drivers.c
@@ -212,7 +212,7 @@ static void garmin_nmea_configurator(struct gps_device_t *session)
/* probe for Garmin serial binary by trying to Product Data request */
/* DLE, PktID, Size, data (none), CHksum, DLE, ETX
(void)gpsd_write(session, "\x10\xFE\x00\x02\x10\x03", 6); */
-#endif /* GARMIN_ENABLE */
+#endif /* GARMIN_ENABLE_UNUSED */
}
#endif /* GARMIN_ENABLE */
#endif /* ALLOW_RECONFIGURE */
@@ -916,7 +916,6 @@ static struct gps_type_t *gpsd_driver_array[] = {
&sirf_nmea,
#ifdef FV18_ENABLE
&fv18,
- &garmin,
#endif /* FV18_ENABLE */
#ifdef TRIPMATE_ENABLE
&tripmate,
@@ -932,6 +931,9 @@ static struct gps_type_t *gpsd_driver_array[] = {
&zodiac_binary,
#endif /* ZODIAC_ENABLE */
#ifdef GARMIN_ENABLE
+#ifdef NMEA_ENABLE
+ &garmin,
+#endif /* NMEA_ENABLE */
&garmin_usb_binary,
&garmin_ser_binary,
#endif /* GARMIN_ENABLE */