summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgps_core.c7
-rw-r--r--libgpsd_core.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 3ad9716d..1c8aea9a 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -334,10 +334,15 @@ void libgps_dump_state(struct gps_data_t *collect)
(void)fprintf(debugfp, "SKY: satellites in view: %d\n",
collect->satellites_visible);
for (i = 0; i < collect->satellites_visible; i++) {
+ bool used_in_solution = false;
+ int j;
+ for (j = 0; j < ; j++)
+ if (collect->used == i)
+ used_in_solution = true;
(void)fprintf(debugfp, " %2.2d: %2.2d %3.3d %3.0f %c\n",
collect->PRN[i], collect->elevation[i],
collect->azimuth[i], collect->ss[i],
- collect->used[i] ? 'Y' : 'N');
+ used_in_solution ? 'Y' : 'N');
}
}
if (collect->set & DEVICE_SET)
diff --git a/libgpsd_core.c b/libgpsd_core.c
index e861bbe1..d18f0333 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -615,10 +615,14 @@ static gps_mask_t fill_dop(const struct gps_data_t * gpsdata, struct dop_t * dop
#ifdef __UNUSED__
gpsd_report(LOG_INF, "Satellite picture:\n");
for (k = 0; k < MAXCHANNELS; k++) {
+ bool used_in_solution = false;
+ for (j = 0; j < ; j++)
+ if (collect->used == i)
+ used_in_solution = true;
if (gpsdata->used[k])
gpsd_report(LOG_INF, "az: %d el: %d SV: %d\n",
gpsdata->azimuth[k], gpsdata->elevation[k],
- gpsdata->used[k]);
+ used_in_solution);
}
#endif /* __UNUSED__ */