Ignore:
Timestamp:
05/04/11 20:34:16 (14 years ago)
Author:
tbretz
Message:
Fixed SetVal
File:
1 edited

Legend:

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

    r10573 r10581  
    620620    }
    621621
    622     bool SetVal(uint32_t &dest, uint32_t val, uint32_t max)
     622    bool SetVal(uint16_t *dest, uint32_t val, uint32_t max)
    623623    {
    624624        if (val>max)
    625625            return false;
    626626
    627         if (dest==val)
     627        if (*dest==val)
    628628            return true;
    629629
    630         dest = val;
     630        *dest = val;
    631631
    632632        CmdSendStatDat();
     
    637637    bool SetTriggerInterval(uint32_t val)
    638638    {
    639         return Set(fStaticData.fTriggerInterval, val, StaticData::kMaxTriggerInterval);
     639        return SetVal(&fStaticData.fTriggerInterval, val, StaticData::kMaxTriggerInterval);
    640640    }
    641641
    642642    bool SetTriggerDelay(uint32_t val)
    643643    {
    644         return Set(fStaticData.fDelayTrigger, val, StaticData::kMaxDelayTrigger);
     644        return SetVal(&fStaticData.fDelayTrigger, val, StaticData::kMaxDelayTrigger);
    645645    }
    646646
    647647    bool SetTimeMarkerDelay(uint32_t val)
    648648    {
    649         return Set(fStaticData.fDelayTimeMarker, val, StaticData::kMaxDelayTimeMarker);
     649        return SetVal(&fStaticData.fDelayTimeMarker, val, StaticData::kMaxDelayTimeMarker);
    650650    }
    651651
    652652    bool SetDeadTime(uint32_t val)
    653653    {
    654         return Set(fStaticData.fDeadTime, val, StaticData::kMaxDeadTime);
     654        return SetVal(&fStaticData.fDeadTime, val, StaticData::kMaxDeadTime);
    655655    }
    656656
Note: See TracChangeset for help on using the changeset viewer.