summaryrefslogtreecommitdiff
path: root/driver_geostar.c
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2012-10-23 10:07:32 +0400
committerEric S. Raymond <esr@thyrsus.com>2012-10-23 06:13:47 -0400
commitffade307317ee9ff85fc9ec1b8253564f217bfa9 (patch)
tree95a753bab41a662bd4f91aff28c1d72eac962c50 /driver_geostar.c
parentfa8834b25c9ea0b5e7b493d61e05d611ca47cb16 (diff)
downloadgpsd-ffade307317ee9ff85fc9ec1b8253564f217bfa9.tar.gz
Mapping NMEA-ID (33..64) to SBAS PRN and minor refactoring.
This change required a regression-test rebuild. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'driver_geostar.c')
-rw-r--r--driver_geostar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_geostar.c b/driver_geostar.c
index 7f6a5c09..88cd7e6e 100644
--- a/driver_geostar.c
+++ b/driver_geostar.c
@@ -28,9 +28,9 @@
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 += 64; /* GLONASS SV */
- else if (num == 0 ) num = 32; /* GPS SV */
+ num = (int)(ch_id & 0x1F); /* SV ID */
+ if((ch_id & (1<<30)) == 0) num += GLONASS_PRN_MAP; /* GLONASS SV */
+ else if (num == 0 ) num = 32; /* GPS SV */
return num;
}