summaryrefslogtreecommitdiff
path: root/sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-01 07:50:24 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-01 07:50:24 +0000
commit1abe221821a0788c68a5b8c7102081a9271c44e0 (patch)
treea7050ff5573085a08168e85d59139896ea01d147 /sirf.c
parent7cc70d9970a2918d149e100e2beecd868d6c6ca8 (diff)
downloadgpsd-1abe221821a0788c68a5b8c7102081a9271c44e0.tar.gz
When gpsctrl is given no arguments, it IDs the selected device and exits.
Diffstat (limited to 'sirf.c')
-rw-r--r--sirf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sirf.c b/sirf.c
index 8fcd0219..303db2ab 100644
--- a/sirf.c
+++ b/sirf.c
@@ -118,9 +118,9 @@ static void sirfbin_mode(struct gps_device_t *session, int mode)
{
#ifdef ALLOW_RECONFIGURE
if (mode == 0) {
- (void)gpsd_switch_driver(session, "SiRF NMEA");
(void)sirf_to_nmea(session->gpsdata.gps_fd,session->gpsdata.baudrate);
session->gpsdata.driver_mode = 0; /* NMEA */
+ (void)gpsd_switch_driver(session, "SiRF NMEA");
} else
#endif /* ALLOW_RECONFIGURE */
session->gpsdata.driver_mode = 1; /* binary */