summaryrefslogtreecommitdiff
path: root/driver_geostar.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-10-23 09:46:09 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-10-23 09:46:09 -0400
commit95cb1ea5e068b6f31af049a17d2620096026e7eb (patch)
treecf9e4c2199fe2518dc093d7467237f4ea3d7c4c3 /driver_geostar.c
parent88c0aec045532c0d9c36ad7e7412958c7d666c8e (diff)
downloadgpsd-95cb1ea5e068b6f31af049a17d2620096026e7eb.tar.gz
Try being clearer about GLONASS satellite IDs.
Diffstat (limited to 'driver_geostar.c')
-rw-r--r--driver_geostar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_geostar.c b/driver_geostar.c
index 88cd7e6e..47150517 100644
--- a/driver_geostar.c
+++ b/driver_geostar.c
@@ -29,7 +29,7 @@
static int decode_channel_id (uint32_t ch_id) {
int num = 0;
num = (int)(ch_id & 0x1F); /* SV ID */
- if((ch_id & (1<<30)) == 0) num += GLONASS_PRN_MAP; /* GLONASS SV */
+ if((ch_id & (1<<30)) == 0) num += GLONASS_PRN_OFFSET; /* GLONASS SV */
else if (num == 0 ) num = 32; /* GPS SV */
return num;
}