Changeset 3002 in ntrip


Ignore:
Timestamp:
Feb 22, 2011, 11:24:49 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3001 r3002  
    115115  }
    116116
    117   // Find the corresponding coDecoder, initialize a new one if necessary
    118   // -------------------------------------------------------------------
    119   if (!_coDecoders.contains(_staID.toAscii())) {
    120     _coDecoders[_staID.toAscii()] = new RTCM3coDecoder(_staID);
    121   }
    122   RTCM3coDecoder* coDecoder = _coDecoders[_staID.toAscii()];
    123 
    124117  // Try to decode Clock and Orbit Corrections
    125118  // -----------------------------------------
    126119  if (_mode == unknown || _mode == corrections) {
     120
     121    // Find the corresponding coDecoder
     122    // --------------------------------
     123    if (!_coDecoders.contains(_staID.toAscii())) {
     124      _coDecoders[_staID.toAscii()] = new RTCM3coDecoder(_staID);
     125    }
     126    RTCM3coDecoder* coDecoder = _coDecoders[_staID.toAscii()];
     127
    127128    if ( coDecoder->Decode(buffer, bufLen, errmsg) == success ) {
    128129      decoded = true;
Note: See TracChangeset for help on using the changeset viewer.