Index: /trunk/BNS/bnseph.cpp
===================================================================
--- /trunk/BNS/bnseph.cpp	(revision 781)
+++ /trunk/BNS/bnseph.cpp	(revision 782)
@@ -72,4 +72,6 @@
   gpsEph* ep = new gpsEph;
 
+  bool flagGlonass = false;
+
   const int NUMLINES = 8;
 
@@ -81,9 +83,27 @@
 
     QByteArray line = _socket->readLine();
+
+    if (flagGlonass) {
+      if (ii == 4) {
+        delete ep;
+        return;
+      }
+      else {
+        continue;
+      }
+    }
+
     QTextStream in(line);
 
     if (ii == 1) {
+      in >> ep->prn;
+
+      if (ep->prn.indexOf('R') != -1) {
+        flagGlonass = true;
+        continue;
+      }
+
       int     year, month, day, hour, minute, second;
-      in >> ep->prn >> year >> month >> day >> hour >> minute >> second
+      in >> year >> month >> day >> hour >> minute >> second
          >> ep->clock_bias >> ep->clock_drift >> ep->clock_driftrate;
       
@@ -124,4 +144,7 @@
   }
 
+      cout << "before emit: " << ep->prn.toAscii().data() << " "
+           << ep->GPSweek << " " << ep->TOC << endl;
+
   emit(newEph(ep));
 }
