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

minor changes regarding RTCM antenna type descriptor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.