Index: trunk/BNC/GPSS/gpssDecoder.cpp
===================================================================
--- trunk/BNC/GPSS/gpssDecoder.cpp	(revision 1435)
+++ trunk/BNC/GPSS/gpssDecoder.cpp	(revision 1436)
@@ -109,14 +109,14 @@
                          epochHdr.n_svs * sizeof(t_obsInternal);
           memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
-          int crdCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
+          int crcCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
 
-          cout << "Obs: " << crc << " " << crdCal << endl;
-
-          for (int is = 0; is < epochHdr.n_svs; is++) {
-            t_obs* obs = new t_obs();
-            memcpy(&(obs->_o), _buffer.data() + 2 + sizeof(recordSize) + 
-                               sizeof(epochHdr) + is * sizeof(t_obsInternal), 
-                   sizeof(t_obsInternal));
-            _obsList.push_back(obs);
+          if (crc == crcCal) {
+            for (int is = 0; is < epochHdr.n_svs; is++) {
+              t_obs* obs = new t_obs();
+              memcpy(&(obs->_o), _buffer.data() + 2 + sizeof(recordSize) + 
+                                 sizeof(epochHdr) + is * sizeof(t_obsInternal), 
+                     sizeof(t_obsInternal));
+              _obsList.push_back(obs);
+            }
           }
         }
@@ -135,12 +135,12 @@
         int checkLen = 2 + sizeof(recordSize) + sizeof(gpsephemeris);
         memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
-        int crdCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
+        int crcCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
 
-        cout << "Eph: " << crc << " " << crdCal << endl;
-
-        gpsephemeris* gpsEph = new gpsephemeris;
-        memcpy(gpsEph, _buffer.data() + 2 + sizeof(recordSize), 
-               sizeof(gpsephemeris));
-        emit newGPSEph(gpsEph);
+        if (crc == crcCal) {
+          gpsephemeris* gpsEph = new gpsephemeris;
+          memcpy(gpsEph, _buffer.data() + 2 + sizeof(recordSize), 
+                 sizeof(gpsephemeris));
+          emit newGPSEph(gpsEph);
+        }
       }
       _buffer = _buffer.mid(reqLength);
