- Timestamp:
- Mar 4, 2009, 5:32:52 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1710 r1711 251 251 // ------------ 252 252 hlp = settings.value("serialFlowControl").toString(); 253 if (hlp == "OFF") { 254 _serialPort->setFlowControl(FLOW_OFF); 255 } 256 else if (hlp == "XONXOFF") { 253 if (hlp == "XONXOFF") { 257 254 _serialPort->setFlowControl(FLOW_XONXOFF); 258 255 } 259 256 else if (hlp == "HARDWARE") { 260 257 _serialPort->setFlowControl(FLOW_HARDWARE); 258 } 259 else { 260 _serialPort->setFlowControl(FLOW_OFF); 261 261 } 262 262 … … 621 621 if (nb > 0) { 622 622 QByteArray data = _serialPort->read(nb); 623 624 if (_serialNMEA == AUTO_NMEA) { 625 _query->sendNMEA(data); 626 } 627 623 628 if (_serialOutFile) { 624 629 _serialOutFile->write(data); -
trunk/BNC/bncnetquery.h
r1500 r1711 16 16 (bncApp*) qApp, SLOT(slotMessage(const QByteArray,bool))); 17 17 } 18 virtual ~bncNetQuery() {} ;18 virtual ~bncNetQuery() {} 19 19 20 20 virtual void stop() = 0; … … 22 22 virtual void startRequest(const QUrl& url, const QByteArray& gga) = 0; 23 23 virtual void waitForReadyRead(QByteArray& outData) = 0; 24 virtual void sendNMEA(const QByteArray& /* ggaString */) {} 24 25 25 26 queryStatus status() const {return _status;}
Note:
See TracChangeset
for help on using the changeset viewer.