Changeset 9873 in ntrip


Ignore:
Timestamp:
Nov 21, 2022, 11:44:45 AM (2 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r9871 r9873  
    300300    cout << "more than 1 epoch in buffer: " << _rtnetStreamBuffer.count('*') << endl;
    301301    emit(newMessage(QString("bncRtnetUploadCaster: more than 1 epoch in buffer: %1").arg(_rtnetStreamBuffer.count('*')).toLatin1(), false));
    302     QString rtnetStreamBuffer = _rtnetStreamBuffer.mid(1);
    303     int nextEpoch = rtnetStreamBuffer.indexOf('*');
     302    int nextEpochEnd = _rtnetStreamBuffer.indexOf("EOE");
     303    QString rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpochEnd);
     304    int nextEpoch    = rtnetStreamBuffer.indexOf('*');
    304305    cout << "=============" << endl;
    305306    cout << "nextEpoch: " << nextEpoch << endl;
     
    308309      _rtnetStreamBuffer = _rtnetStreamBuffer.mid(nextEpoch);
    309310      cout <<  "next Epoch:\n" << _rtnetStreamBuffer.toStdString().c_str() << endl;
    310 
    311311    }
    312312    else if (nextEpoch != -1 && nextEpoch >= iEpoEnd) {
Note: See TracChangeset for help on using the changeset viewer.