added a generic way to add a custom check

This commit is contained in:
2020-09-04 14:24:34 +02:00
parent b8754fbc16
commit 4d7d48e8ca
2 changed files with 25 additions and 6 deletions

View File

@ -139,6 +139,8 @@ public:
*/
ReturnValue_t checkSequence() const;
void addCustomCheck(ReturnValue_t (*customCheckFunction)(const SlotList &));
/**
* @brief Perform any initialization steps required after the executing
* task has been created. This function should be called from the
@ -162,6 +164,8 @@ protected:
*/
SlotList slotList;
ReturnValue_t (*customCheckFunction)(const SlotList&) = nullptr;
uint32_t lengthMs;
};