- Timestamp:
- Dec 22, 2008, 3:51:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1323 r1326 193 193 194 194 if (settings.value("serial_staID").toString() == _staID) { 195 _serialPort = new QextSerialPort(); 196 _serialPort->open(); 195 _serialPort = new QextSerialPort( settings.value("serial_name").toString() ); 196 _serialPort->setBaudRate(BAUD9600); 197 _serialPort->setParity(PAR_NONE); 198 _serialPort->setDataBits(DATA_8); 199 _serialPort->setStopBits(STOP_1); 200 _serialPort->open(QIODevice::ReadWrite|QIODevice::Unbuffered); 201 qDebug() << "serial port opened: " << _serialPort->isOpen() << endl; 197 202 } 198 203 else { … … 563 568 564 569 if (_serialPort) { 565 _serialPort->write(data, nBytes); 566 _serialPort->flush(); 570 int irc = _serialPort->write(data, nBytes); 571 //// _serialPort->flush(); 572 qDebug() << nBytes << " " << irc << endl; 567 573 } 568 574
Note:
See TracChangeset
for help on using the changeset viewer.