Index: trunk/BNC/RTCM3/rtcm3torinex.c
===================================================================
--- trunk/BNC/RTCM3/rtcm3torinex.c	(revision 1909)
+++ trunk/BNC/RTCM3/rtcm3torinex.c	(revision 1910)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.c,v 1.25 2009/05/07 09:27:19 mervart Exp $
+  $Id: rtcm3torinex.c,v 1.26 2009/11/04 16:19:40 zdenek Exp $
   Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu>
 
@@ -55,5 +55,5 @@
 
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.25 $";
+static char revisionstr[] = "$Revision: 1.26 $";
 
 #ifndef COMPILEDATE
@@ -669,13 +669,13 @@
             ;
 
-          if(num == gnss->numsats) {
-            gnss->satellites[gnss->numsats] = fullsat;
-            gnss->channels  [gnss->numsats] = freq;
-            gnss->numsats++;
-          }
+          if(num == gnss->numsats)
+            gnss->satellites[gnss->numsats++] = fullsat;
 
           /* L1 */
           GETBITS(code, 1)
           GETBITS(freq, 5)
+
+          gnss->channels[num] = freq - 7;
+
           if(code)
           {
@@ -1692,5 +1692,5 @@
 
 #ifndef NO_RTCM3_MAIN
-static char datestr[]     = "$Date: 2009/05/07 09:27:19 $";
+static char datestr[]     = "$Date: 2009/11/04 16:19:40 $";
 
 /* The string, which is send as agent in HTTP request */
