Changeset 8217 in ntrip


Ignore:
Timestamp:
Dec 13, 2017, 1:40:08 PM (7 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r8215 r8217  
    729729unsigned int t_ephGlo::isUnhealthy() const {
    730730
    731   switch (_almanac_health_availablility_indicator) {
    732     case 1:
     731  if (_almanac_health_availablility_indicator) {
    733732      if ((_health == 0 && _almanac_health == 0) ||
    734733          (_health == 1 && _almanac_health == 0) ||
     
    736735        return 1;
    737736      }
    738       break;
    739     case 0:
    740       if (_health) {
    741         return 1;
    742       }
    743       break;
     737  }
     738  else if (!_almanac_health_availablility_indicator) {
     739    if (_health) {
     740      return 1;
     741    }
    744742  }
    745743  return 0; /* (_health == 0 && _almanac_health == 1) or (_health == 0) */
    746744}
     745
    747746
    748747// Constructor
Note: See TracChangeset for help on using the changeset viewer.