Added opCode to performControlOperation
This commit is contained in:
parent
cfd4b1655a
commit
f28ba61b02
@ -78,7 +78,7 @@ void ControllerBase::announceMode(bool recursive) { triggerEvent(MODE_INFO, mode
|
||||
|
||||
ReturnValue_t ControllerBase::performOperation(uint8_t opCode) {
|
||||
handleQueue();
|
||||
performControlOperation();
|
||||
performControlOperation(opCode);
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ class ControllerBase : public HasModesIF,
|
||||
/**
|
||||
* Periodic helper, implemented by child class.
|
||||
*/
|
||||
virtual void performControlOperation() = 0;
|
||||
virtual void performControlOperation(uint8_t opCode) = 0;
|
||||
|
||||
ReturnValue_t checkModeCommand(Mode_t mode, Submode_t submode,
|
||||
uint32_t *msToReachTheMode) override = 0;
|
||||
|
@ -81,7 +81,7 @@ ReturnValue_t ExtendedControllerBase::initializeAfterTaskCreation() {
|
||||
|
||||
ReturnValue_t ExtendedControllerBase::performOperation(uint8_t opCode) {
|
||||
handleQueue();
|
||||
performControlOperation();
|
||||
performControlOperation(opCode);
|
||||
/* We do this after performing control operation because variables will be set changed
|
||||
in this function. */
|
||||
poolManager.performHkOperation();
|
||||
|
@ -44,7 +44,7 @@ class ExtendedControllerBase : public ControllerBase,
|
||||
/**
|
||||
* Periodic helper from ControllerBase, implemented by child class.
|
||||
*/
|
||||
void performControlOperation() override = 0;
|
||||
void performControlOperation(uint8_t opCode) override = 0;
|
||||
|
||||
// Handle the four messages mentioned above
|
||||
void handleQueue() override;
|
||||
|
@ -13,7 +13,7 @@ ReturnValue_t TestController::handleCommandMessage(CommandMessage *message) {
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
||||
void TestController::performControlOperation() {}
|
||||
void TestController::performControlOperation(uint8_t opCode) {}
|
||||
|
||||
void TestController::handleChangedDataset(sid_t sid, store_address_t storeId, bool *clearMessage) {}
|
||||
|
||||
|
@ -13,7 +13,7 @@ class TestController : public ExtendedControllerBase {
|
||||
protected:
|
||||
// Extended Controller Base overrides
|
||||
ReturnValue_t handleCommandMessage(CommandMessage* message) override;
|
||||
void performControlOperation() override;
|
||||
void performControlOperation(uint8_t opCode) override;
|
||||
|
||||
// HasLocalDatapoolIF callbacks
|
||||
virtual void handleChangedDataset(sid_t sid, store_address_t storeId,
|
||||
|
Loading…
Reference in New Issue
Block a user