Changeset 1326 in ntrip


Ignore:
Timestamp:
Dec 22, 2008, 3:51:03 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1323 r1326  
    193193
    194194  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;
    197202  }
    198203  else {
     
    563568
    564569        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;
    567573        }
    568574
Note: See TracChangeset for help on using the changeset viewer.