Ignore:
Timestamp:
Aug 27, 2020, 3:34:22 PM (4 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r9047 r9049  
    16191619          (id >= 1240 && id <= 1270) ||
    16201620                  (id == 4076)) {
    1621         RTCM3coDecoder::e_type type = RTCM3coDecoder::RTCMssr;
     1621        if (!_coDecoders.contains(_staID.toLatin1())) {
     1622          _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID);
     1623        }
     1624        RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];
    16221625        if (id == 4076) {
    1623           type = RTCM3coDecoder::IGSssr;
     1626          coDecoder->setSsrFormatType(RTCM3coDecoder::IGSssr);
    16241627        }
    1625         if (!_coDecoders.contains(_staID.toLatin1()))
    1626           _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID, type);
    1627         RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];
     1628        else {
     1629          coDecoder->setSsrFormatType(RTCM3coDecoder::RTCMssr);
     1630        }
    16281631        if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize,
    16291632            errmsg) == success) {
Note: See TracChangeset for help on using the changeset viewer.