summaryrefslogtreecommitdiff
path: root/net_gnss_dispatch.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-07-05 03:22:47 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-07-05 03:22:47 +0000
commit39c9eae22038fc1de40e86db35824416368b78b4 (patch)
treea0cf34664c44caec79af11f83496ef5a05fe9747 /net_gnss_dispatch.c
parent37bc5352ffc2bdf092ca585ee0849b6bcca605e5 (diff)
downloadgpsd-39c9eae22038fc1de40e86db35824416368b78b4.tar.gz
GPSD can now be a gpsd client
that is, it can connect to and relay data from other gpsd instances. Sample usage # gpsd -S 12000 -n 'gpsd://localhost:2947/?raw' # cgps 127.0.0.1:12000
Diffstat (limited to 'net_gnss_dispatch.c')
-rw-r--r--net_gnss_dispatch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net_gnss_dispatch.c b/net_gnss_dispatch.c
index bfba6949..581a595d 100644
--- a/net_gnss_dispatch.c
+++ b/net_gnss_dispatch.c
@@ -41,10 +41,8 @@ int netgnss_uri_open(struct gps_context_t *context, char *netgnss_service)
if (strncmp(netgnss_service, NETGNSS_DGPSIP, strlen(NETGNSS_DGPSIP))==0)
return dgpsip_open(context, netgnss_service + strlen(NETGNSS_DGPSIP));
-#if 0
if (strncmp(netgnss_service, NETGNSS_GPSD, strlen(NETGNSS_GPSD))==0)
return remotegpsd_open(context, netgnss_service + strlen(NETGNSS_GPSD));
-#endif
#ifndef REQUIRE_DGNSS_PROTO
return dgpsip_open(context, netgnss_service);
@@ -85,7 +83,7 @@ void netgnss_report(struct gps_device_t *session)
void netgnss_autoconnect(struct gps_context_t *context, double lat, double lon)
{
- if (context->netgnss_service != netgnss_ntrip) {
+ if (context->netgnss_service == netgnss_dgpsip) {
dgpsip_autoconnect(context, lat, lon, DGPSIP_SERVER_LIST);
}
}