summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-04-11 11:24:44 -0700
committerGary E. Miller <gem@rellim.com>2016-04-11 11:24:44 -0700
commit067d1e837be5dab17e2de36080df618e3ce0969e (patch)
tree5e631ff8f83c99da58b919a35c382dcff54ae2a1 /gpsd.c
parentb3c3c6c9c1401131fb6da09800ef48f708a1ad40 (diff)
downloadgpsd-067d1e837be5dab17e2de36080df618e3ce0969e.tar.gz
Also send SKY when GPGSA is received.
Some GPS send GPGSV (sats in view) every 5 seconds by GPGSA (sats used) every second. gpsd was sending SKY only on GPGSV, so the more frequent updates to used sats were getting lost. Now send updates on GPGSA and GPGSV changes. The sat view is now more up to date.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 6f575cd5..d962a18f 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1407,7 +1407,7 @@ static void pseudonmea_report(struct subscriber_t *sub,
(void)throttled_write(sub, buf, strlen(buf));
}
- if ((changed & SATELLITE_SET) != 0) {
+ if ((changed & (SATELLITE_SET|USED_IS)) != 0) {
nmea_sky_dump(device, buf, sizeof(buf));
gpsd_log(&context.errout, LOG_IO,
"<= GPS (binary sky) %s: %s\n",