summaryrefslogtreecommitdiff
path: root/net_gnss_dispatch.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-03 11:08:29 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-03-03 11:08:29 -0500
commit3feb2a7ba585d45d688ba1ea6683b3f11f55ce69 (patch)
tree3b41cebe79661bda36060740239257e1265cd8c6 /net_gnss_dispatch.c
parent4787f68f82525f190cd4a0e6a552967ccb655e06 (diff)
downloadgpsd-3feb2a7ba585d45d688ba1ea6683b3f11f55ce69.tar.gz
Make extra sure Ntrip correction state is correctly initialized.
Diffstat (limited to 'net_gnss_dispatch.c')
-rw-r--r--net_gnss_dispatch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net_gnss_dispatch.c b/net_gnss_dispatch.c
index 1f12d012..c20b461e 100644
--- a/net_gnss_dispatch.c
+++ b/net_gnss_dispatch.c
@@ -32,8 +32,10 @@ int netgnss_uri_open(struct gps_device_t *dev, char *netgnss_service)
/* open a connection to a DGNSS service */
{
#ifdef NTRIP_ENABLE
- if (strncmp(netgnss_service, NETGNSS_NTRIP, strlen(NETGNSS_NTRIP)) == 0)
+ if (strncmp(netgnss_service, NETGNSS_NTRIP, strlen(NETGNSS_NTRIP)) == 0) {
+ dev->ntrip.conn_state = ntrip_conn_init;
return ntrip_open(dev, netgnss_service + strlen(NETGNSS_NTRIP));
+ }
#endif
if (strncmp(netgnss_service, NETGNSS_DGPSIP, strlen(NETGNSS_DGPSIP)) == 0)