- Timestamp:
- May 7, 2009, 10:16:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r1832 r1833 136 136 _buffer.size(), &bytesused); 137 137 138 if (irc <= -30) { // not enough data 138 if (irc <= -30) { // not enough data - restore state and exit loop 139 139 memcpy(&_co, &co_sav, sizeof(co_sav)); 140 if (retCode != success) { 141 _GPSweeks = -1.0; 142 } 143 return retCode; 144 } 145 146 else if (irc >= 0) { // OK or MESSAGEFOLLOWS 140 break; 141 } 142 143 else if (irc < 0) { // error - skip 1 byte and retry 144 memset(&_co, 0, sizeof(_co)); 145 _buffer = _buffer.mid(1); 146 } 147 148 else { // OK or MESSAGEFOLLOWS 147 149 _buffer = _buffer.mid(bytesused); 148 150 … … 207 209 } 208 210 } 209 210 else { // error - skip 1 byte and retry 211 memset(&_co, 0, sizeof(_co)); 212 _buffer = _buffer.mid(1); 213 } 214 } 215 211 } 212 213 if (retCode != success) { 214 _GPSweeks = -1.0; 215 } 216 216 return retCode; 217 217 }
Note:
See TracChangeset
for help on using the changeset viewer.