summaryrefslogtreecommitdiff
path: root/pseudonmea.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 /pseudonmea.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 'pseudonmea.c')
-rw-r--r--pseudonmea.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/pseudonmea.c b/pseudonmea.c
index 753446a0..10ad7126 100644
--- a/pseudonmea.c
+++ b/pseudonmea.c
@@ -172,15 +172,6 @@ static void gpsd_binary_quality_dump(struct gps_device_t *session,
"$GPGSA,%c,%d,", 'A', session->gpsdata.fix.mode);
j = 0;
for (i = 0; i < session->device_type->channels; i++) {
-#ifdef NMEA_ENABLE
- if (session->sats_used[i] > 0) {
- bufp += strlen(bufp);
- (void)snprintf(bufp, len - strlen(bufp),
- "%d,",
- session->sats_used[i]);
- j++;
- }
-#else
if (session->gpsdata.skyview[i].used == true){
bufp += strlen(bufp);
(void)snprintf(bufp, len - strlen(bufp),
@@ -188,7 +179,6 @@ static void gpsd_binary_quality_dump(struct gps_device_t *session,
session->gpsdata.skyview[i].PRN);
j++;
}
-#endif
}
for (i = j; i < session->device_type->channels; i++) {
bufp += strlen(bufp);