Changeset 9881 in ntrip


Ignore:
Timestamp:
Nov 21, 2022, 2:11:34 PM (12 days ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r9880 r9881  
    299299  // If there is there more than 1 epoch line in the buffer
    300300  while (_rtnetStreamBuffer.count('*') > 1) {
    301     cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl;    emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false));
     301    cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl;
     302    emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false));
    302303    QString rtnetStreamBuffer = _rtnetStreamBuffer;
    303304    int nextEpoch    = rtnetStreamBuffer.indexOf('*');
    304305    int nextEpochEnd = rtnetStreamBuffer.indexOf("EOE");
    305306    _rtnetStreamBuffer = _rtnetStreamBuffer.mid(1);
    306     nextEpoch    = rtnetStreamBuffer.indexOf('*');
    307     _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);
    308307    if      (nextEpoch != -1 && nextEpoch < iEpoEnd) {
    309308      rtnetStreamBuffer = rtnetStreamBuffer.mid(nextEpoch);
     
    312311        decodeRtnetEpoch(lines);
    313312      }
     313      nextEpoch    = _rtnetStreamBuffer.indexOf('*');
     314      _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);
     315
    314316    }
    315317    else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {
Note: See TracChangeset for help on using the changeset viewer.