- Timestamp:
- Apr 8, 2008, 4:14:15 PM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r792 r793 174 174 // ------------ 175 175 while (true) { 176 if (_clkSocket && _clkSocket->state() == QAbstractSocket::ConnectedState) { 177 if (!_clkSocket->canReadLine()) { 178 _clkSocket->waitForReadyRead(10); 179 } 180 else { 181 readEpoch(); 182 } 176 if (_clkSocket && 177 _clkSocket->state() == QAbstractSocket::ConnectedState && 178 _clkSocket->canReadLine()) { 179 readEpoch(); 183 180 } 184 181 else { … … 209 206 210 207 for (int ii = 1; ii <= numSat; ii++) { 211 if (!_clkSocket->canReadLine()) {212 _clkSocket->waitForReadyRead(10);213 }214 208 line = _clkSocket->readLine(); 215 209 -
trunk/BNS/bnseph.cpp
r791 r793 82 82 for (int ii = 1; ii <= NUMLINES; ii++) { 83 83 84 if (!_socket->canReadLine()) {85 _socket->waitForReadyRead(10);86 }87 88 84 QByteArray line = _socket->readLine(); 89 85
Note:
See TracChangeset
for help on using the changeset viewer.