summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-24 08:15:04 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-24 08:15:04 -0500
commit501c0f83b676eb730fab413da0bf602f8d607710 (patch)
tree88d7fb82d232fbfeeac158141bd0b2bc8f7d4da8 /libgpsd_core.c
parent24cfe972c7fad96e231bb88d76ac6ed9f1831121 (diff)
downloadgpsd-501c0f83b676eb730fab413da0bf602f8d607710.tar.gz
Guard probes on whether the device being activated is serial.
The previous test was wrong. Checking if the net correction service available is netgnss might give the wrong result is it is but there are attached serial devices as well.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 790270ce..2a532eef 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -738,7 +738,7 @@ int gpsd_activate(struct gps_device_t *session)
return -1;
else {
#ifdef NON_NMEA_ENABLE
- if (session->context->netgnss_service != netgnss_ntrip) {
+ if (session->is_serial) {
const struct gps_type_t **dp;
/*@ -mustfreeonly @*/