summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-03-04 14:53:21 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-03-04 14:53:21 +0000
commitbf752b436a59d90e732ae38994722e45d3b8edad (patch)
tree1e22467184053bbdfebf835a39977f1ad98fff0f /serial.c
parent4be4da29af8dbc8146a67df5ee9b68d308f11a78 (diff)
downloadgpsd-bf752b436a59d90e732ae38994722e45d3b8edad.tar.gz
Aha! The Garmin probe works now.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial.c b/serial.c
index 363b5192..c399036e 100644
--- a/serial.c
+++ b/serial.c
@@ -94,7 +94,7 @@ int gpsd_open(struct gps_session_t *session)
if (isatty(session->gNMEAdata.gps_fd)) {
#ifdef NON_NMEA_ENABLE
- if ( session->device_type && (session->device_type->typekey == 'g')) {
+ if (garmin_probe(session) == 0) {
// IFF Garmin then skip the rest of the IO stuff
// The Linux Garmin driver ignores all baud rate, stop bits, etc.
return session->gNMEAdata.gps_fd;