diff options
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 7 |
1 files changed, 6 insertions, 1 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) |