Index: trunk/BNC/RTCM3/RTCM3Decoder.cpp
===================================================================
--- trunk/BNC/RTCM3/RTCM3Decoder.cpp	(revision 2386)
+++ trunk/BNC/RTCM3/RTCM3Decoder.cpp	(revision 2387)
@@ -65,9 +65,12 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-RTCM3Decoder::RTCM3Decoder(const QString& staID) : GPSDecoder() {
+RTCM3Decoder::RTCM3Decoder(const QString& staID, bool inputFromFile) : 
+                GPSDecoder() {
+
+  _staID           = staID;
+  _inputFromFile   = inputFromFile;
 
   bncSettings settings;
   _checkMountPoint = settings.value("miscMount").toString();
-  _staID = staID;
 
   // Ensure, that the Decoder uses the "old" convention for the data structure for Rinex2. Perlt
@@ -118,6 +121,6 @@
     if ( _coDecoder->Decode(buffer, bufLen, errmsg) == success ) {
       decoded = true;
-      if (_mode == unknown) {
-        /////        _mode = corrections;
+      if (!_inputFromFile && _mode == unknown) {
+        _mode = corrections;
       }
     }
@@ -340,6 +343,6 @@
       }
     }
-    if (_mode == unknown && decoded) {
-      ////      _mode = observations;
+    if (!_inputFromFile && _mode == unknown && decoded) {
+      _mode = observations;
     }
   }
Index: trunk/BNC/RTCM3/RTCM3Decoder.h
===================================================================
--- trunk/BNC/RTCM3/RTCM3Decoder.h	(revision 2386)
+++ trunk/BNC/RTCM3/RTCM3Decoder.h	(revision 2387)
@@ -41,5 +41,5 @@
 Q_OBJECT
  public:
-  RTCM3Decoder(const QString& fileName);
+  RTCM3Decoder(const QString& staID, bool inputFromFile);
   virtual ~RTCM3Decoder();
   virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg);
@@ -67,5 +67,5 @@
   std::map<std::string, t_ephGPS> _ephList;
   double                 _antXYZ[3];
-
+  bool                   _inputFromFile;
 };
 
Index: trunk/BNC/bncgetthread.cpp
===================================================================
--- trunk/BNC/bncgetthread.cpp	(revision 2386)
+++ trunk/BNC/bncgetthread.cpp	(revision 2387)
@@ -307,5 +307,9 @@
            _format.indexOf("RTCM 3") != -1 ) {
     emit(newMessage(_staID + ": Get data in RTCM 3.x format", true));
-    _decoder = new RTCM3Decoder(_staID);
+    bool inputFromFile = false;
+    if (_rawInpFile != 0) {
+      inputFromFile = true;
+    }
+    _decoder = new RTCM3Decoder(_staID, inputFromFile);
     connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)), 
             this, SIGNAL(newMessage(QByteArray,bool)));
