summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-10-10 05:09:24 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-10-10 05:09:24 +0000
commit2f76bbadbae1f89ee40a25830b8d9070aa55ae5f (patch)
tree4e7953e319c37e4fe99099b859fbc982434ad756 /drivers.c
parentab56197d0589e221d72aa89d82f7cbb69aa63b9e (diff)
downloadgpsd-2f76bbadbae1f89ee40a25830b8d9070aa55ae5f.tar.gz
wrap more configuration lines in #ifdef ALLOW_RECONFIGURE
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers.c b/drivers.c
index 331bf44b..26a95b5b 100644
--- a/drivers.c
+++ b/drivers.c
@@ -113,10 +113,12 @@ static void nmea_initializer(struct gps_device_t *session)
*/
#define FV18_PROBE "$PFEC,GPint,GSA01,DTM00,ZDA01,RMC01,GLL00,VTG00,GSV05"
(void)nmea_send(session->gpsdata.gps_fd, FV18_PROBE);
+#ifdef ALLOW_RECONFIGURE
/* Sony CXD2951 chips: +GGA, -GLL, +GSA, +GSV, +RMC, -VTG, +ZDA, -PSGSA */
(void)nmea_send(session->gpsdata.gps_fd, "@NC10151010");
/* enable GPZDA on a Motorola Oncore GT+ */
(void)nmea_send(session->gpsdata.gps_fd, "$PMOTG,ZDA,1");
+#endif /* ALLOW_RECONFIGURE */
/* probe for Garmin serial GPS */
/* first turn off garmin binary
(void)gpsd_write(session, "\x10\x0A\x02\x26\x00\xCE\x10\x03", 8); */
@@ -240,8 +242,10 @@ static void sirf_initializer(struct gps_device_t *session)
{
/* (void)nmea_send(session->gpsdata.gps_fd, "$PSRF105,0"); */
(void)nmea_send(session->gpsdata.gps_fd, "$PSRF105,0");
+#ifdef ALLOW_RECONFIGURE
(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 /* ALLOW_RECONFIGURE */
}
static bool sirf_switcher(struct gps_device_t *session, int nmea, unsigned int speed)
@@ -308,8 +312,10 @@ static void tripmate_initializer(struct gps_device_t *session)
{
/* TripMate requires this response to the ASTRAL it sends at boot time */
(void)nmea_send(session->gpsdata.gps_fd, "$IIGPQ,ASTRAL");
+#ifdef ALLOW_RECONFIGURE
/* stop it sending PRWIZCH */
(void)nmea_send(session->gpsdata.gps_fd, "$PRWIILOG,ZCH,V,,");
+#endif /* ALLOW_RECONFIGURE */
}
static struct gps_type_t tripmate = {