Changeset 7874 in ntrip for trunk/BNC/src
- Timestamp:
- Apr 18, 2016, 3:27:45 PM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM/RTCM2Decoder.cpp
r7835 r7874 211 211 } 212 212 } else if (_PP.ID() == 23) { 213 if (_msg23.validMsg ) {213 if (_msg23.validMsg && !_antType.contains(_msg23.antType.c_str())) { 214 214 _antType.push_back(_msg23.antType.c_str()); 215 215 } -
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r7872 r7874 1394 1394 { 1395 1395 char *antenna, type[256]; 1396 int antnum ;1396 int antnum = -1; 1397 1397 uint64_t numbits = 0, bitfield = 0; 1398 1398 … … 1402 1402 SKIPBITS(12) 1403 1403 GETSTRING(antnum, antenna) 1404 if (antnum < 265) {1404 if (antnum > -1 && antnum < 265) { 1405 1405 memcpy(type, antenna, antnum); 1406 1406 type[antnum] = 0; 1407 _antType.push_back(type); 1407 if (!_antType.contains(type)) { 1408 _antType.push_back(type); 1409 } 1408 1410 } 1409 1411 return true;
Note:
See TracChangeset
for help on using the changeset viewer.