Changeset 2004 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Nov 21, 2009, 4:17:37 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r2000 r2004  
    284284  // _rawOutFile->open(QIODevice::WriteOnly);
    285285
     286  // Initialize PPP Clinet?
     287  // ----------------------
     288  bool pppClient = false;
     289  if (settings.value("pppMount").toString() == _staID) {
     290    pppClient = true;
     291  }
    286292
    287293  // Instantiate the decoder
     
    291297    emit(newMessage(_staID + ": Get data in RTCM 2.x format", true));
    292298    _decoder = new RTCM2Decoder(_staID.data());
    293     _PPPthread = new bncPPPthread(_staID);
     299    if (pppClient) {
     300      _PPPthread = new bncPPPthread(_staID);
     301    }
    294302  }
    295303  else if (_format.indexOf("RTCM_3") != -1 || _format.indexOf("RTCM3") != -1 ||
     
    299307    connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)),
    300308            this, SIGNAL(newMessage(QByteArray,bool)));
    301     _PPPthread = new bncPPPthread(_staID);
     309    if (pppClient) {
     310      _PPPthread = new bncPPPthread(_staID);
     311    }
    302312  }
    303313  else if (_format.indexOf("RTIGS") != -1) {
    304314    emit(newMessage(_staID + ": Get data in RTIGS format", true));
    305315    _decoder = new RTIGSDecoder();
    306     _PPPthread = new bncPPPthread(_staID);
     316    if (pppClient) {
     317      _PPPthread = new bncPPPthread(_staID);
     318    }
    307319  }
    308320  else if (_format.indexOf("GPSS") != -1 || _format.indexOf("BNC") != -1) {
Note: See TracChangeset for help on using the changeset viewer.