diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-18 01:00:40 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-18 01:00:40 -0400 |
commit | 5398d10dc20ef7433818f422396b80475b6a8b22 (patch) | |
tree | 6edee75eccfffb80994e03a420d57f88a4359aa1 /driver_ubx.c | |
parent | 6a000d7214a50e07403cae817e8944d710781ecb (diff) | |
download | gpsd-5398d10dc20ef7433818f422396b80475b6a8b22.tar.gz |
Correction for SBAS satellite use bit code.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 06eae616..1a737402 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -227,6 +227,10 @@ ubx_msg_nav_svinfo(struct gps_device_t *session, unsigned char *buf, /*@ +predboolothers */ j++; } + /* mark SBAS sats in use if SBAS was in use as of the last MID 27 */ + for (i = 0; i < j; i++) + if (session->gpsdata.PRN[i] > 100 && session->driver.sirf.sbas != 0) + session->gpsdata.used[i] = true; session->gpsdata.skyview_time = NAN; session->gpsdata.satellites_visible = (int)st; session->gpsdata.satellites_used = (int)nsv; |