summaryrefslogtreecommitdiff
path: root/net_dgpsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-24 13:12:25 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-24 13:12:25 -0500
commit829c3a3b0295ff653e4a14f2a7087e20940a7c0f (patch)
treeb528405a4bbcd631c35aa7968149cfb67cb21fe2 /net_dgpsip.c
parent7e0ac597b057ed4119a76f4e33f2a5a304fc1c0a (diff)
downloadgpsd-829c3a3b0295ff653e4a14f2a7087e20940a7c0f.tar.gz
The NTRIP connection state musn't be zeroed on gpsd_activate().
Andre Naujoks informed me of this.
Diffstat (limited to 'net_dgpsip.c')
-rw-r--r--net_dgpsip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net_dgpsip.c b/net_dgpsip.c
index c747626a..87c7a188 100644
--- a/net_dgpsip.c
+++ b/net_dgpsip.c
@@ -25,7 +25,7 @@ int dgpsip_open(struct gps_device_t *device, const char *dgpsserver)
char *colon, *dgpsport = "rtcm-sc104";
int opts;
- device->driver.dgpsip.reported = false;
+ device->dgpsip.reported = false;
if ((colon = strchr(dgpsserver, ':')) != NULL) {
dgpsport = colon + 1;
*colon = '\0';
@@ -66,8 +66,8 @@ void dgpsip_report(struct gps_device_t *session)
* 10 is an arbitrary number, the point is to have gotten several good
* fixes before reporting usage to our DGPSIP server.
*/
- if (session->context->fixcnt > 10 && !session->driver.dgpsip.reported) {
- session->driver.dgpsip.reported = true;
+ if (session->context->fixcnt > 10 && !session->dgpsip.reported) {
+ session->dgpsip.reported = true;
if (session->gpsdata.gps_fd > -1) {
char buf[BUFSIZ];
(void)snprintf(buf, sizeof(buf), "R %0.8f %0.8f %0.2f\r\n",