From 5a7ae949353f394ff16762460b951953d0eee4d5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 21 Sep 2013 02:19:27 -0400 Subject: Fix some minor bugs in debug reporting of the sat picture. --- libgps_core.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libgps_core.c') 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) -- cgit v1.2.1