summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-21 02:31:05 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-21 02:31:05 -0400
commitc3ab5172bdf6cc4296362ff37db64f53157f4b94 (patch)
treeba0b75b1236b197a93dc1d769d40e45118eb72e9 /libgps_core.c
parenta0410fa5011bd8907110f5bca96971bf0ac37216 (diff)
downloadgpsd-c3ab5172bdf6cc4296362ff37db64f53157f4b94.tar.gz
Minor typo fix. All regression tests pass.
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c
index b318790a..f19262e7 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -337,7 +337,7 @@ void libgps_dump_state(struct gps_data_t *collect)
bool used_in_solution = false;
int j;
for (j = 0; j < MAXCHANNELS; j++)
- if (collect->used == i)
+ if (collect->used[j] == i)
used_in_solution = true;
(void)fprintf(debugfp, " %2.2d: %2.2d %3.3d %3.0f %c\n",
collect->PRN[i], collect->elevation[i],