diff options
Diffstat (limited to 'driver_geostar.c')
-rw-r--r-- | driver_geostar.c | 6 |
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; } |