- Timestamp:
- Feb 21, 2007, 11:12:31 AM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r389 r406 66 66 const QByteArray& nmea, int iMount) { 67 67 _decoder = 0; 68 _zeroDecoder= false; 68 69 _mountPoint = mountPoint; 69 70 _staID = mountPoint.path().mid(1).toAscii(); … … 289 290 // Instantiate the filter 290 291 // ---------------------- 291 if (!_decoder ) {292 if (!_decoder && !_zeroDecoder) { 292 293 if (_format.indexOf("RTCM_2") != -1) { 293 294 emit(newMessage("Get Data: " + _staID + " in RTCM 2.x format")); … … 301 302 emit(newMessage("Get Data: " + _staID + " in RTIGS format")); 302 303 _decoder = new RTIGSDecoder(); 304 } 305 else if (_format.indexOf("SP3") != -1) { 306 emit(newMessage("Get Data in SP3 format")); 307 _zeroDecoder = true; 303 308 } 304 309 else { … … 340 345 char* data = new char[nBytes]; 341 346 _socket->read(data, nBytes); 347 348 if (_zeroDecoder) { 349 cout.write(data, nBytes); 350 continue; 351 } 352 342 353 _decoder->Decode(data, nBytes); 343 354 delete [] data; -
trunk/BNC/bncgetthread.h
r366 r406 74 74 int _nextSleep; 75 75 int _iMount; 76 bool _zeroDecoder; 76 77 }; 77 78
Note:
See TracChangeset
for help on using the changeset viewer.