Index: trunk/BNC/bnc.pro
===================================================================
--- trunk/BNC/bnc.pro	(revision 422)
+++ trunk/BNC/bnc.pro	(revision 423)
@@ -14,5 +14,5 @@
 HEADERS = bnchelp.html bncgetthread.h    bncwindow.h   bnctabledlg.h  \
           bnccaster.h bncrinex.h bncapp.h bncutils.h   bnchlpdlg.h    \
-          bncconst.h bnchtml.h bnctableitem.h                         \
+          bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h        \
           RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h          \
           RTCM3/RTCM3Decoder.h RTCM3/rtcm3torinex.h                   \
@@ -23,4 +23,5 @@
           bnccaster.cpp bncrinex.cpp bncapp.cpp bncutils.cpp          \
           bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp     \
+          bnczerodecoder.cpp                                          \
           RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
           RTCM3/RTCM3Decoder.cpp RTCM3/rtcm3torinex.cpp               \
Index: trunk/BNC/bncgetthread.cpp
===================================================================
--- trunk/BNC/bncgetthread.cpp	(revision 422)
+++ trunk/BNC/bncgetthread.cpp	(revision 423)
@@ -52,4 +52,5 @@
 #include "bncutils.h"
 #include "bncrinex.h"
+#include "bnczerodecoder.h"
 
 #include "RTCM/RTCM2Decoder.h"
@@ -67,5 +68,4 @@
                            const QByteArray& nmea, int iMount) {
   _decoder    = 0;
-  _zeroDecoder= false;
   _mountPoint = mountPoint;
   _staID      = mountPoint.path().mid(1).toAscii();
@@ -302,5 +302,5 @@
   // Instantiate the filter
   // ----------------------
-  if (!_decoder && !_zeroDecoder) { 
+  if (!_decoder) { 
     if      (_format.indexOf("RTCM_2") != -1) {
       emit(newMessage("Get Data: " + _staID + " in RTCM 2.x format"));
@@ -315,7 +315,7 @@
       _decoder = new RTIGSDecoder();
     }
-    else if (_format.indexOf("SP3") != -1) {
-      emit(newMessage("Get Data in SP3 format"));
-      _zeroDecoder = true;
+    else if (_format.indexOf("SP3") != -1 || _format.indexOf("ASCII") != -1) {
+      emit(newMessage("Get Data in ASCII format"));
+      _decoder = new bncZeroDecoder();
     }
     else {
@@ -358,11 +358,7 @@
         _socket->read(data, nBytes);
 
-        if (_zeroDecoder) {
-          cout.write(data, nBytes);
-          continue;
-        }
-
         _decoder->Decode(data, nBytes);
         delete [] data;
+        
         for (list<Observation*>::iterator it = _decoder->_obsList.begin(); 
              it != _decoder->_obsList.end(); it++) {
Index: trunk/BNC/bncgetthread.h
===================================================================
--- trunk/BNC/bncgetthread.h	(revision 422)
+++ trunk/BNC/bncgetthread.h	(revision 423)
@@ -76,5 +76,4 @@
    int         _nextSleep;
    int         _iMount;
-   bool        _zeroDecoder;
    int         _samplingRate;
    bncRinex*   _rnx;
Index: trunk/BNC/bnczerodecoder.cpp
===================================================================
--- trunk/BNC/bnczerodecoder.cpp	(revision 423)
+++ trunk/BNC/bnczerodecoder.cpp	(revision 423)
@@ -0,0 +1,46 @@
+// Part of BNC, a utility for retrieving decoding and
+// converting GNSS data streams from NTRIP broadcasters,
+// written by Leos Mervart.
+//
+// Copyright (C) 2006
+// German Federal Agency for Cartography and Geodesy (BKG)
+// http://www.bkg.bund.de
+// Czech Technical University Prague, Department of Advanced Geodesy
+// http://www.fsv.cvut.cz
+//
+// Email: euref-ip@bkg.bund.de
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation, version 2.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#include <iostream>
+#include "bnczerodecoder.h"
+
+using namespace std;
+
+// Constructor
+//////////////////////////////////////////////////////////////////////// 
+bncZeroDecoder::bncZeroDecoder() {
+}
+
+// Destructor
+//////////////////////////////////////////////////////////////////////// 
+bncZeroDecoder::~bncZeroDecoder() {
+}
+
+// Decode Method
+//////////////////////////////////////////////////////////////////////// 
+void bncZeroDecoder::Decode(char* buffer, int bufLen) {
+  cout.write(buffer, bufLen);
+}
+
Index: trunk/BNC/bnczerodecoder.h
===================================================================
--- trunk/BNC/bnczerodecoder.h	(revision 423)
+++ trunk/BNC/bnczerodecoder.h	(revision 423)
@@ -0,0 +1,39 @@
+// Part of BNC, a utility for retrieving decoding and
+// converting GNSS data streams from NTRIP broadcasters,
+// written by Leos Mervart.
+//
+// Copyright (C) 2006
+// German Federal Agency for Cartography and Geodesy (BKG)
+// http://www.bkg.bund.de
+// Czech Technical University Prague, Department of Advanced Geodesy
+// http://www.fsv.cvut.cz
+//
+// Email: euref-ip@bkg.bund.de
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation, version 2.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#ifndef INC_BNCZERODECODER_H
+#define INC_BNCZERODECODER_H
+
+#include "RTCM/GPSDecoder.h"
+
+class bncZeroDecoder: public GPSDecoder {
+  public:
+    bncZeroDecoder();
+    ~bncZeroDecoder();
+    virtual void Decode(char* buffer, int bufLen);
+  private:
+};
+
+#endif  // include blocker
