Changeset 1607 in ntrip


Ignore:
Timestamp:
Feb 18, 2009, 11:49:03 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1606 r1607  
    119119  _nextSleep     = 0;
    120120  _rawOutFile    = 0;
     121  _serialOutFile = 0;
    121122  _staID_orig    = _staID;
    122123
     
    257258      _serialOutFile->open(QIODevice::WriteOnly);
    258259    }
    259     else {
    260       _serialOutFile = 0;
    261     }
    262260  }
    263261  else {
     
    318316  delete _rawInpFile;
    319317  delete _rawOutFile;
     318  delete _serialOutFile;
    320319  delete _serialPort;
    321320  delete _latencyChecker;
     
    578577////////////////////////////////////////////////////////////////////////////
    579578void bncGetThread::slotSerialReadyRead() {
    580 
    581 }
     579  if (_serialPort) {
     580    QByteArray data = _serialPort->readAll();
     581    if (_serialOutFile) {
     582      _serialOutFile->write(data);
     583      _serialOutFile->flush();
     584    }
     585  }
     586}
  • trunk/BNC/bncgetthread.h

    r1595 r1607  
    7474   virtual void run();
    7575
     76 private slots:
     77   void slotSerialReadyRead();
     78
    7679 private:
    7780   void  initialize();
     
    100103   latencyChecker* _latencyChecker;
    101104   QString         _miscMount;
     105   QFile*          _serialOutFile;
    102106};
    103107
Note: See TracChangeset for help on using the changeset viewer.