Changeset 11372


Ignore:
Timestamp:
07/13/11 14:51:35 (13 years ago)
Author:
tbretz
Message:
Some little changes to the output; use Vec<> instead of Get<vector<string>> fo rthe configuration
File:
1 edited

Legend:

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

    r11344 r11372  
    15971597        if (fTargetConfig==fConfigs.end())
    15981598        {
    1599             T::Error("Configuration '"+name+"' not found.");
     1599            T::Error("ConfigureFTM - Run-type '"+name+"' not found.");
    16001600            return T::GetCurrentState();
    16011601        }
     
    16091609    }
    16101610
    1611     int ResetConfig(const EventImp &)
     1611    int ResetConfig()
    16121612    {
    16131613        return fFTM.GetState();
     
    19001900
    19011901        T::AddEvent("RESET_CONFIGURE", FTM::kConfiguring1, FTM::kConfiguring2, FTM::kConfigured, FTM::kConfigError1, FTM::kConfigError2)
    1902             (boost::bind(&StateMachineFTM::ResetConfig, this, _1))
     1902            (boost::bind(&StateMachineFTM::ResetConfig, this))
    19031903            ("");
    19041904
     
    19941994
    19951995        // ---------- Setup clock conditioner frequencies ----------
    1996         const vector<uint16_t> freq = conf.Get<vector<uint16_t>>("clock-conditioner.frequency");
     1996        const vector<uint16_t> freq = conf.Vec<uint16_t>("clock-conditioner.frequency");
    19971997        if (freq.size()==0)
    19981998            T::Warn("No frequencies for the clock-conditioner defined.");
    1999 
    2000         T::Message("Defining clock conditioner frequencies");
     1999        else
     2000            T::Message("Defining clock conditioner frequencies");
    20012001        for (vector<uint16_t>::const_iterator it=freq.begin();
    20022002             it!=freq.end(); it++)
     
    20402040
    20412041        // ---------- Setup run types ---------
    2042         const vector<string> types = conf.Get<vector<string>>("run-type");
     2042        const vector<string> types = conf.Vec<string>("run-type");
    20432043        if (types.size()==0)
    20442044            T::Warn("No run-types defined.");
    2045 
    2046         T::Message("Defining run-types");
     2045        else
     2046            T::Message("Defining run-types");
    20472047        for (vector<string>::const_iterator it=types.begin();
    20482048             it!=types.end(); it++)
    20492049        {
     2050            T::Message(" -> "+ *it);
     2051
    20502052            if (fConfigs.count(*it)>0)
    20512053            {
     
    21612163            // kMaxDAC = 0xfff,
    21622164        }
     2165
     2166        // FIXME: Add a check about unsused configurations
    21632167
    21642168        // ---------- FOR TESTING PURPOSE ---------
Note: See TracChangeset for help on using the changeset viewer.