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

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3Decoder.cpp

    r9046 r9048  
    16311631       * else. */
    16321632      if ((id >= 1057 && id <= 1068) ||
    1633           (id >= 1240 && id <= 1270) ||
    1634                   (id == 4076)) {
    1635         RTCM3coDecoder::e_type type = RTCM3coDecoder::RTCMssr;
     1633            (id >= 1240 && id <= 1270) ||
     1634                      (id == 4076)) {
     1635        if (!_coDecoders.contains(_staID.toLatin1())) {
     1636          _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID);
     1637        }
     1638        RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];
    16361639        if (id == 4076) {
    1637           type = RTCM3coDecoder::IGSssr;
     1640          coDecoder->setSsrFormatType(RTCM3coDecoder::IGSssr);
    16381641        }
    1639         if (!_coDecoders.contains(_staID.toLatin1()))
    1640           _coDecoders[_staID.toLatin1()] = new RTCM3coDecoder(_staID, type);
    1641         RTCM3coDecoder* coDecoder = _coDecoders[_staID.toLatin1()];
     1642        else {
     1643          coDecoder->setSsrFormatType(RTCM3coDecoder::RTCMssr);
     1644        }
    16421645        if (coDecoder->Decode(reinterpret_cast<char *>(_Message), _BlockSize,
    16431646            errmsg) == success) {
Note: See TracChangeset for help on using the changeset viewer.