summaryrefslogtreecommitdiff
path: root/driver_ubx.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-10 13:14:12 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-10 13:14:12 -0500
commit0fcb2da0c5ae748c64c3c6f09f0dd8f7998f74f2 (patch)
tree0d0a35034245df150af29ac58c100723079fd1cc /driver_ubx.c
parenta950067545c52db618154994f76a5659d1be558c (diff)
downloadgpsd-0fcb2da0c5ae748c64c3c6f09f0dd8f7998f74f2.tar.gz
Almost entirely eliminate use of sats_used array.
Instead, set the used member in the satellites array directly where possible. The NMEA0183 and TSIP drivers still need a local equivalent. This changes pseudo-NMEA GSA output in several binary-protocol tests.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r--driver_ubx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_ubx.c b/driver_ubx.c
index 24918a56..25b4ecf2 100644
--- a/driver_ubx.c
+++ b/driver_ubx.c
@@ -272,7 +272,7 @@ ubx_msg_nav_svinfo(struct gps_device_t *session, unsigned char *buf,
continue;
/*@ -predboolothers */
if (used || session->gpsdata.skyview[st].PRN == (int)session->driver.ubx.sbas_in_use) {
- session->sats_used[nsv++] = session->gpsdata.skyview[st].PRN;
+ nsv++;
session->gpsdata.skyview[st].used = true;
}
/*@ +predboolothers */