Changeset 12038 for trunk/FACT++


Ignore:
Timestamp:
09/08/11 21:44:32 (14 years ago)
Author:
tbretz
Message:
Fixed the check for the sampling-frequency check.
File:
1 edited

Legend:

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

    r12000 r12038  
    22752275            }
    22762276
    2277             FTM::StaticData data;
    2278 
    2279             const uint16_t frq = conf.GetDef<uint16_t>("sampling-frequency.", *it);
    2280             if (fClockCondSetup.count(frq)==0)
     2277            if (!conf.HasDef("sampling-frequency.", *it))
    22812278            {
    2282                 T::Error("sampling-frequency."+*it+" - frequency not available.");
     2279                T::Error("Neither sampling-frequency."+*it+" nor sampling-frequency.default found.");
    22832280                return 2;
    22842281            }
    22852282
     2283            const uint16_t frq = conf.GetDef<uint16_t>("sampling-frequency.", *it);
     2284
     2285            FTM::StaticData data;
    22862286            data.SetClockRegister(fClockCondSetup[frq].data());
    22872287
Note: See TracChangeset for help on using the changeset viewer.