summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-11-15 18:06:49 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-11-15 18:06:49 +0000
commit1474db6c686eace7ba0372b87afa33300201752a (patch)
treebf75f966c8d527dd855ab9a6529e683b67e8e563 /drivers.c
parent24bd6acd5dda30f1524cf3d6357629aeef96831a (diff)
downloadgpsd-1474db6c686eace7ba0372b87afa33300201752a.tar.gz
Make it compile without sirf.
I'm going to have to do another single-protocol compile test soon, though Mick seems to be doing that for me. Thanks!
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers.c b/drivers.c
index 7bbc6123..2556e812 100644
--- a/drivers.c
+++ b/drivers.c
@@ -326,13 +326,13 @@ static void sirf_mode(struct gps_device_t *session, int mode)
#ifdef ALLOW_RECONFIGURE
static void sirf_configurator(struct gps_device_t *session)
{
-#if defined(BINARY_ENABLE)
+#if defined(BINARY_ENABLE) && defined(SIRF_ENABLE)
sirf_mode(session, 1); /* throw us to SiRF binary */
session->driver.sirf.back_to_nmea = true;
#else
(void)nmea_send(session->gpsdata.gps_fd, "$PSRF103,05,00,00,01"); /* no VTG */
(void)nmea_send(session->gpsdata.gps_fd, "$PSRF103,01,00,00,01"); /* no GLL */
-#endif /* BINARY_ENABLE */
+#endif /* defined(BINARY_ENABLE) && defined(SIRF_ENABLE) */
}
#endif /* ALLOW_RECONFIGURE */