Changeset 12336


Ignore:
Timestamp:
10/30/11 22:38:19 (13 years ago)
Author:
tbretz
Message:
For the time being go back to idle when a new run was successfully started.
File:
1 edited

Legend:

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

    r12314 r12336  
    5656        kStateConfiguring3,
    5757        kStateConfigured,
     58//        kStateRunInProgress,
    5859    };
    5960
     
    174175    int StopRun(const EventImp &)
    175176    {
    176         if (fStatusFTM.second==FTM::kTakingData)
     177        if (fStatusFTM.second==FTM::kTriggerOn)
    177178        {
    178179            Message("Stopping FTM");
     
    324325
    325326            if (GetCurrentState()==kStateConfigured)
    326                 return GetCurrentState();
     327            {
     328                if (fStatusFTM.second != FTM::kTriggerOn)
     329                    return GetCurrentState();
     330
     331                // Now we are taking data... we could now wait for
     332                // the fad to go back to -1
     333            }
    327334
    328335            return kStateIdle;
Note: See TracChangeset for help on using the changeset viewer.