Changeset 8759 in ntrip


Ignore:
Timestamp:
May 17, 2019, 12:46:23 PM (6 weeks ago)
Author:
stuerze
Message:

minor changes to read the RTNET data buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp

    r8754 r8759  
    259259    QString rtnetStreamBuffer = _rtnetStreamBuffer.mid(1);
    260260    int nextEpoch = rtnetStreamBuffer.indexOf('*');
    261     if (nextEpoch != -1 && nextEpoch < iEpoEnd) {
     261    if      (nextEpoch != -1 && nextEpoch < iEpoEnd) {
    262262      _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);
    263263    }
    264   }
    265 
    266   lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n',
     264    else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {
     265      break;
     266    }
     267  }
     268
     269  lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n',
    267270      QString::SkipEmptyParts);
    268271  _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3);
Note: See TracChangeset for help on using the changeset viewer.