Ignore:
Timestamp:
11/20/12 18:23:49 (12 years ago)
Author:
tbretz
Message:
Fixed a problem with the states if at startup the ftmctrl is not running.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ratescan.cc

    r14609 r14673  
    246246    int HandleFtmStateChange(/*const EventImp &evt*/)
    247247    {
    248         // All subsystems are not connected
    249         if (fDimFTM.state()<FTM::State::kConnected)
    250             return RateScan::State::kDisconnected;
    251 
    252248        // ftmctrl connected to FTM
    253         if (GetCurrentState()==RateScan::State::kDisconnected)
    254             return RateScan::State::kConnected;
    255 
    256249        if (GetCurrentState()!=RateScan::State::kConfiguring)
    257250            return GetCurrentState();
     
    374367        if (!fDim.online())
    375368            return RateScan::State::kDimNetworkNA;
     369
     370        // All subsystems are not connected
     371        if (fDimFTM.state()<FTM::State::kConnected)
     372            return RateScan::State::kDisconnected;
     373
     374        // ftmctrl connected to FTM
     375        if (GetCurrentState()==RateScan::State::kDisconnected)
     376            return RateScan::State::kConnected;
    376377
    377378        return GetCurrentState();
Note: See TracChangeset for help on using the changeset viewer.