Changeset 7875 in ntrip for branches


Ignore:
Timestamp:
Apr 18, 2016, 3:29:28 PM (3 years ago)
Author:
stuerze
Message:

minor changes regarding RTCM antenna type descriptor

Location:
branches/BNC_2.12/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/RTCM/RTCM2Decoder.cpp

    r7835 r7875  
    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      }
  • branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp

    r7873 r7875  
    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.