Changeset 1331 in ntrip
- Timestamp:
- Dec 23, 2008, 3:56:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1330 r1331 263 263 } 264 264 _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 } 266 270 } 267 271 else { … … 633 637 634 638 if (_serialPort) { 635 int irc =_serialPort->write(data, nBytes);639 _serialPort->write(data, nBytes); 636 640 //// _serialPort->flush(); 637 qDebug() << nBytes << " " << irc << endl;638 641 } 639 642
Note:
See TracChangeset
for help on using the changeset viewer.