Changeset 8659 in ntrip for trunk/BNC/src/bncephuser.cpp


Ignore:
Timestamp:
Apr 4, 2019, 10:08:16 AM (5 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncephuser.cpp

    r8614 r8659  
    152152
    153153  const t_eph* ephOld = ephLast(prn);
     154
     155  if (ephOld &&
     156      (ephOld->checkState() == t_eph::bad ||
     157       ephOld->checkState() == t_eph::outdated)) {
     158    ephOld = 0;
     159  }
    154160
    155161  if ((ephOld == 0 || newEph->isNewerThan(ephOld)) &&
     
    220226      return;
    221227    }
    222     else if (eph->type() == t_eph::GLONASS && timeDiff > 1 * 3600) { // updated every 30 minutes
     228    else if (eph->type() == t_eph::GLONASS && timeDiff > 2 * 3600) { // updated every 30 minutes
    223229      eph->setCheckState(t_eph::outdated);
    224230      return;
     
    266272      return;
    267273    }
    268     else if (eph->type() == t_eph::GLONASS && dt > 1*3600) {
     274    else if (eph->type() == t_eph::GLONASS && dt > 2*3600) {
    269275      ephL->setCheckState(t_eph::outdated);
    270276      return;
Note: See TracChangeset for help on using the changeset viewer.