Index: /trunk/rtcm3torinex/lib/rtcm3torinex.c
===================================================================
--- /trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 4958)
+++ /trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 4959)
@@ -622,4 +622,10 @@
             gnss->codetype[num][ce] = gnss->codetype[num][le] = "1C";
           }
+          if(!handle->info[RTCM3_MSM_GPS].type[ce])
+          {
+            handle->info[RTCM3_MSM_GPS].type[ce] = 
+            handle->info[RTCM3_MSM_GPS].type[le] = 
+            handle->info[RTCM3_MSM_GPS].type[se] = gnss->codetype[num][ce][1];
+          }
           GETBITS(l1range, 24);
           GETBITSSIGN(i, 20);
@@ -684,4 +690,10 @@
               gnss->codetype[num][ce] = gnss->codetype[num][le] = "2 ";
             }
+            if(!handle->info[RTCM3_MSM_GPS].type[ce])
+            {
+              handle->info[RTCM3_MSM_GPS].type[ce] = 
+              handle->info[RTCM3_MSM_GPS].type[le] = 
+              handle->info[RTCM3_MSM_GPS].type[se] = gnss->codetype[num][ce][1];
+            }
             GETBITSSIGN(i,14);
             if((i&((1<<14)-1)) != 0x2000)
@@ -812,4 +824,10 @@
             gnss->codetype[num][se] = 
             gnss->codetype[num][ce] = gnss->codetype[num][le] = "1C";
+          }
+          if(!handle->info[RTCM3_MSM_GLONASS].type[ce])
+          {
+            handle->info[RTCM3_MSM_GLONASS].type[ce] = 
+            handle->info[RTCM3_MSM_GLONASS].type[le] = 
+            handle->info[RTCM3_MSM_GLONASS].type[se] = gnss->codetype[num][ce][1];
           }
           GETBITS(l1range, 25)
@@ -868,4 +886,10 @@
               gnss->codetype[num][se] = 
               gnss->codetype[num][ce] = gnss->codetype[num][le] = "2C";
+            }
+            if(!handle->info[RTCM3_MSM_GLONASS].type[ce])
+            {
+              handle->info[RTCM3_MSM_GLONASS].type[ce] = 
+              handle->info[RTCM3_MSM_GLONASS].type[le] = 
+              handle->info[RTCM3_MSM_GLONASS].type[se] = gnss->codetype[num][ce][1];
             }
             GETBITSSIGN(i,14)
