diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-20 19:10:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-20 19:10:16 +0000 |
commit | e3bd3bc1eaa3a7e13a15b6a5e3c73ca17838c5c5 (patch) | |
tree | 87f0cd7c372938fa4339bdaa9f88613287871cab /gpsutils.c | |
parent | 971cb00c9b7bb72b6134664b07d19a66f572de31 (diff) | |
download | gpsd-e3bd3bc1eaa3a7e13a15b6a5e3c73ca17838c5c5.tar.gz |
This version passes the regression test.
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -392,7 +392,7 @@ static int invert(double mat[4][4], /*@out@*/double inverse[4][4]) } /*@ +fixedformalarray +mustdefine @*/ -gps_mask_t dop(int channels, struct gps_data_t *gpsdata) +gps_mask_t dop(struct gps_data_t *gpsdata) { double prod[4][4]; double inv[4][4]; @@ -408,7 +408,7 @@ gps_mask_t dop(int channels, struct gps_data_t *gpsdata) } #endif /* __UNUSED__ */ - for (n = k = 0; k < channels; k++) { + for (n = k = 0; k < gpsdata->satellites_used; k++) { if (gpsdata->used[k] != 0) continue; satpos[n][0] = sin(gpsdata->azimuth[k]*DEG_2_RAD) |