diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-19 18:44:40 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-19 18:44:40 -0700 |
commit | 4126514c1b4f07cbd05baf923744de47db2745a1 (patch) | |
tree | 24ef4c134df0aa257aa51752f3bbdf338c857696 /driver_sirf.c | |
parent | 7c8ea9cbcb27790947f758a7c73a108b1c21bfb0 (diff) | |
download | gpsd-4126514c1b4f07cbd05baf923744de47db2745a1.tar.gz |
gps.h: remove wrong SBAS_PRN()
This macro was wrong, and causing valid sats to not be included in
the COP calculations.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r-- | driver_sirf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_sirf.c b/driver_sirf.c index 793ce0a0..7ef367ea 100644 --- a/driver_sirf.c +++ b/driver_sirf.c @@ -606,7 +606,7 @@ static gps_mask_t sirf_msg_svinfo(struct gps_device_t *session, /* mark SBAS sats in use if SBAS was in use as of the last MID 27 */ for (i = 0; i < st; i++) { int prn = session->gpsdata.skyview[i].PRN; - if (SBAS_PRN(prn) \ + if ( (prn >= 120 && prn <= 158) \ && session->gpsdata.status == STATUS_DGPS_FIX \ && session->driver.sirf.dgps_source == SIRF_DGPS_SOURCE_SBAS) session->gpsdata.skyview[i].used = true; |