Changeset 1331 in ntrip


Ignore:
Timestamp:
Dec 23, 2008, 3:56:01 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1330 r1331  
    263263    }
    264264    _serialPort->open(QIODevice::ReadWrite|QIODevice::Unbuffered);
    265     qDebug() << "serial port opened: " << _serialPort->isOpen() << endl;
     265    if (!_serialPort->isOpen()) {
     266      delete _serialPort;
     267      _serialPort = 0;
     268      emit(newMessage((_staID + ": Cannot Open Serial Port\n"), true));
     269    }
    266270  }
    267271  else {
     
    633637
    634638        if (_serialPort) {
    635           int irc = _serialPort->write(data, nBytes);
     639          _serialPort->write(data, nBytes);
    636640          ////          _serialPort->flush();
    637           qDebug() << nBytes << " " << irc << endl;
    638641        }
    639642
Note: See TracChangeset for help on using the changeset viewer.