Changeset 6443 in ntrip for trunk/BNC/src/RTCM/RTCM2Decoder.cpp


Ignore:
Timestamp:
Dec 26, 2014, 12:47:27 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM/RTCM2Decoder.cpp

    r6442 r6443  
    5555//
    5656
    57 RTCM2Decoder::RTCM2Decoder(const std::string& ID) : bncEphUser(true) {
     57RTCM2Decoder::RTCM2Decoder(const std::string& ID) : _ephUser(true) {
    5858  _ID = ID;
    5959}
     
    352352
    353353      // Select corresponding ephemerides
    354       if      (ephLast(prn) && ephLast(prn)->IOD() == IODcorr) {
    355         eph = ephLast(prn);
    356       }
    357       else if (ephPrev(prn) && ephPrev(prn)->IOD() == IODcorr) {
    358         eph = ephPrev(prn);
     354      const t_eph* ephLast = _ephUser.ephLast(prn);
     355      const t_eph* ephPrev = _ephUser.ephPrev(prn);
     356      if      (ephLast && ephLast->IOD() == IODcorr) {
     357        eph = ephLast;
     358      }
     359      else if (ephPrev && ephPrev->IOD() == IODcorr) {
     360        eph = ephPrev;
    359361      }
    360362
Note: See TracChangeset for help on using the changeset viewer.