Changeset 7874 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Apr 18, 2016, 3:27:45 PM (9 years ago)
Author:
stuerze
Message:

minor changes regarding RTCM antenna type descriptor

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM/RTCM2Decoder.cpp

    r7835 r7874  
    211211      }
    212212    } else if (_PP.ID() == 23) {
    213       if (_msg23.validMsg) {
     213      if (_msg23.validMsg && !_antType.contains(_msg23.antType.c_str())) {
    214214        _antType.push_back(_msg23.antType.c_str());
    215215      }
  • trunk/BNC/src/RTCM3/RTCM3Decoder.cpp

    r7872 r7874  
    13941394{
    13951395  char *antenna, type[256];
    1396   int antnum;
     1396  int antnum = -1;
    13971397  uint64_t numbits = 0, bitfield = 0;
    13981398
     
    14021402  SKIPBITS(12)
    14031403  GETSTRING(antnum, antenna)
    1404   if (antnum < 265) {
     1404  if (antnum > -1 && antnum < 265) {
    14051405    memcpy(type, antenna, antnum);
    14061406    type[antnum] = 0;
    1407     _antType.push_back(type);
     1407    if (!_antType.contains(type)) {
     1408      _antType.push_back(type);
     1409    }
    14081410  }
    14091411  return true;
Note: See TracChangeset for help on using the changeset viewer.