Changeset 14355 for trunk/FACT++/src


Ignore:
Timestamp:
08/13/12 10:33:33 (12 years ago)
Author:
tbretz
Message:
fDimFTM should be a described stat for the PRINT command; the switch from disconnected to connected can be bound to a change of the ftmctrl state into HandleFtmstateChange.
File:
1 edited

Legend:

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

    r14009 r14355  
    3434private:
    3535    DimVersion fDim;
    36     DimState   fDimFTM;
    37 
     36
     37    DimDescribedState   fDimFTM;
    3838    DimDescribedService fDimData;
    3939    DimDescribedService fDimProc;
     
    248248    int HandleFtmStateChange(/*const EventImp &evt*/)
    249249    {
     250        // All subsystems are not connected
     251        if (fDimFTM.state()<FTM::State::kConnected)
     252            return RateScan::State::kDisconnected;
     253
     254        // ftmctrl connected to FTM
     255        if (GetCurrentState()==RateScan::State::kDisconnected)
     256            return RateScan::State::kConnected;
     257
    250258        if (GetCurrentState()!=RateScan::State::kConfiguring)
    251259            return GetCurrentState();
     
    367375        if (!fDim.online())
    368376            return RateScan::State::kDimNetworkNA;
    369 
    370         // All subsystems are not connected
    371         if (fDimFTM.state()<FTM::State::kConnected)
    372             return RateScan::State::kDisconnected;
    373377
    374378        return GetCurrentState();
Note: See TracChangeset for help on using the changeset viewer.