From 501c0f83b676eb730fab413da0bf602f8d607710 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 24 Feb 2011 08:15:04 -0500 Subject: 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. --- libgpsd_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgpsd_core.c') 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 @*/ -- cgit v1.2.1