summaryrefslogtreecommitdiff
path: root/driver_italk.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-03-04 18:49:43 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-03-04 18:49:43 +0000
commit5d1f82f279b56acc1632031399d833c9e1676745 (patch)
tree862b6af0ccbcbc6a320407af092740f785cb5723 /driver_italk.c
parent466e153e221dc4cec7f33595a3b0d51b5d4f41ea (diff)
downloadgpsd-5d1f82f279b56acc1632031399d833c9e1676745.tar.gz
The itrax03 is a 12-channel receiver. so say all the spec sheets...
yet i'm getting at least 13 SV reports, and that's not counting WAAS birds. maybe they meant "12 GPS channel + a few more for WAAS"
Diffstat (limited to 'driver_italk.c')
-rw-r--r--driver_italk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_italk.c b/driver_italk.c
index f2cef86c..b36aa5e9 100644
--- a/driver_italk.c
+++ b/driver_italk.c
@@ -114,8 +114,8 @@ static gps_mask_t decode_itk_prnstatus(struct gps_device_t *session, unsigned ch
gpsd_zero_satellites(&session->gpsdata);
nsv = 0;
nchan = (unsigned int)getleuw(buf, 7 +50);
- if (nchan > MAXCHANNELS)
- nchan = MAXCHANNELS;
+ if (nchan > MAX_NR_VISIBLE_PRNS)
+ nchan = MAX_NR_VISIBLE_PRNS;
for (i = st = 0; i < nchan; i++) {
unsigned int off = 7+ 52 + 10 * i;
unsigned short flags;