Changeset 1828 in ntrip
- Timestamp:
- May 5, 2009, 6:08:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r1727 r1828 72 72 connect(this, SIGNAL(newCorrLine(QString, QString, long)), 73 73 (bncApp*) qApp, SLOT(slotNewCorrLine(QString, QString, long))); 74 75 memset(&_co, 0, sizeof(_co)); 74 76 } 75 77 … … 127 129 while (true) { 128 130 129 memset(&_co, 0, sizeof(_co));130 131 131 int bytesused = 0; 132 132 GCOB_RETURN irc = GetClockOrbitBias(&_co, &_bias, _buffer.data(), … … 135 135 // Not enough Data 136 136 // --------------- 137 if (irc == GCOBR_SHORTBUFFER ||137 if (irc == GCOBR_SHORTBUFFER || 138 138 irc == GCOBR_MESSAGEEXCEEDSBUFFER) { 139 139 if (retCode != success) { … … 142 142 return retCode; 143 143 } 144 145 // Second part of the message follows 146 // ---------------------------------- 147 else if (irc == GCOBR_MESSAGEFOLLOWS) { 148 _buffer = _buffer.mid(bytesused); 149 } 144 150 145 151 // Message correctly decoded 146 152 // ------------------------- 147 else if ( (irc == GCOBR_OK || irc == GCOBR_MESSAGEFOLLOWS) &&148 bytesused > 0) { 153 else if (bytesused > 0 && irc == GCOBR_OK) { 154 149 155 reopen(); 150 156 … … 205 211 _buffer = _buffer.mid(bytesused); 206 212 retCode = success; 213 memset(&_co, 0, sizeof(_co)); 207 214 } 208 215
Note:
See TracChangeset
for help on using the changeset viewer.