Ignore:
Timestamp:
06/08/13 12:25:58 (11 years ago)
Author:
tbretz
Message:
When compiling a new static buffer to be sent to the FTM, not the last received buffer has to be used but the last sent buffer, this is because a new configuration might be in the queue already, but we have not yet received the answer. To avoid race conditions, the sent buffer is now filled at connection time and used to update the configuration; also a new state was introduced to signal (for debugging mainly) whether the last sent and the last received static data are different (this does not include the thresholds); for convenience in the ratecontrol: added a SET_ALL_THRESHOLDS
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/HeadersFTM.h

    r15106 r16771  
    3636        enum StateMachine
    3737        {
    38             kDisconnected = 1, //= ConnectionFTM::kDisconnected,
    39             kConnected,        //= ConnectionFTM::kConnected,
    40             kIdle,             //= ConnectionFTM::kIdle,
    41             kTriggerOn,        //= ConnectionFTM::kTriggerOn,
     38            kDisconnected = 1,
     39            kConnected,
     40            kIdle,
     41            kValid,
     42            kTriggerOn,
    4243            kConfiguring1,
    4344            kConfiguring2,
     
    261262            return memcmp(this, &d, sizeof(StaticData))==0;
    262263        }
     264
     265        bool valid() const { static StaticData empty; return memcmp(this, &empty, sizeof(FTM::StaticData))!=0; }
    263266
    264267        void clear() { reset(*this); }
Note: See TracChangeset for help on using the changeset viewer.