Index: trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 8980)
+++ trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 8982)
@@ -263,5 +263,5 @@
     QString rtnetStreamBuffer = _rtnetStreamBuffer.mid(1);
     int nextEpoch = rtnetStreamBuffer.indexOf('*');
-    if (nextEpoch != -1 && nextEpoch < iEpoEnd) {
+    if      (nextEpoch != -1 && nextEpoch < iEpoEnd) {
       _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);
     }
@@ -274,5 +274,4 @@
       QString::SkipEmptyParts);
   _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3);
-
 
   if (lines.size() < 2) {
@@ -546,5 +545,4 @@
       }
 
-
       struct ClockOrbit::SatData* sd = 0;
       if (prn.system() == 'G') {
@@ -564,5 +562,5 @@
         sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
            + CLOCKORBIT_NUMGALILEO
-		   + co.NumberOfSat[CLOCKORBIT_SATQZSS];
+           + co.NumberOfSat[CLOCKORBIT_SATQZSS];
         ++co.NumberOfSat[CLOCKORBIT_SATQZSS];
       }
@@ -606,5 +604,5 @@
         else if (prn.system() == 'E') {
           biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
-                   + bias.NumberOfSat[CLOCKORBIT_SATGALILEO];
+                  + bias.NumberOfSat[CLOCKORBIT_SATGALILEO];
           ++bias.NumberOfSat[CLOCKORBIT_SATGALILEO];
         }
@@ -612,18 +610,19 @@
           biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
                   + CLOCKORBIT_NUMGALILEO
-			      + bias.NumberOfSat[CLOCKORBIT_SATQZSS];
+                  + bias.NumberOfSat[CLOCKORBIT_SATQZSS];
           ++bias.NumberOfSat[CLOCKORBIT_SATQZSS];
+        }
+        else if (prn.system() == 'S') {
+          biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
+                  + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS
+                  + bias.NumberOfSat[CLOCKORBIT_SATSBAS];
+          ++bias.NumberOfSat[CLOCKORBIT_SATSBAS];
         }
         else if (prn.system() == 'C') {
           biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
-                   + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS
-                   + bias.NumberOfSat[CLOCKORBIT_SATBDS];
+                  + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 
+                  + CLOCKORBIT_NUMSBAS
+                  + bias.NumberOfSat[CLOCKORBIT_SATBDS];
           ++bias.NumberOfSat[CLOCKORBIT_SATBDS];
-        }
-        else if (prn.system() == 'S') {
-          biasSat = bias.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS
-                  + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMBDS
-                  + bias.NumberOfSat[CLOCKORBIT_SATSBAS];
-          ++bias.NumberOfSat[CLOCKORBIT_SATSBAS];
         }
       }
