Changeset 7873 in ntrip


Ignore:
Timestamp:
Apr 18, 2016, 2:24:17 PM (9 years ago)
Author:
stuerze
Message:

minor changes regarding RTCM3 antenna type determination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp

    r7850 r7873  
    13931393bool RTCM3Decoder::DecodeAntenna(unsigned char* data, int size)
    13941394{
    1395   char *antenna;
     1395  char *antenna, type[256];
    13961396  int antnum;
    13971397  uint64_t numbits = 0, bitfield = 0;
     
    14011401
    14021402  SKIPBITS(12)
    1403   GETSTRING(antnum,antenna)
    1404   _antType.push_back(antenna);
    1405 
     1403  GETSTRING(antnum, antenna)
     1404  if (antnum < 265) {
     1405    memcpy(type, antenna, antnum);
     1406    type[antnum] = 0;
     1407    _antType.push_back(type);
     1408  }
    14061409  return true;
    14071410}
Note: See TracChangeset for help on using the changeset viewer.