DHB update

This commit is contained in:
Robin Müller 2020-05-17 15:49:46 +02:00
parent da972e1b58
commit 9597a0121b
2 changed files with 8 additions and 5 deletions

View File

@ -44,6 +44,7 @@ DeviceHandlerBase::DeviceHandlerBase(object_id_t setObjectId,
}
DeviceHandlerBase::~DeviceHandlerBase() {
//communicationInterface->close(cookie);
delete comCookie;
if (defaultFDIRUsed) {
delete fdirInstance;
@ -355,9 +356,9 @@ ReturnValue_t DeviceHandlerBase::insertInReplyMap(DeviceCommandId_t replyId,
info.command = deviceCommandMap.end();
auto resultPair = deviceReplyMap.emplace(replyId, info);
if (resultPair.second) {
return HasReturnvaluesIF::RETURN_OK;
return RETURN_OK;
} else {
return HasReturnvaluesIF::RETURN_FAILED;
return RETURN_FAILED;
}
}
@ -368,9 +369,9 @@ ReturnValue_t DeviceHandlerBase::insertInCommandMap(DeviceCommandId_t deviceComm
info.sendReplyTo = NO_COMMANDER;
auto resultPair = deviceCommandMap.emplace(deviceCommand, info);
if (resultPair.second) {
return HasReturnvaluesIF::RETURN_OK;
return RETURN_OK;
} else {
return HasReturnvaluesIF::RETURN_FAILED;
return RETURN_FAILED;
}
}

View File

@ -481,9 +481,11 @@ public:
*/
virtual void setParentQueue(MessageQueueId_t parentQueueId);
/** @brief Implementation required for HasActionIF */
ReturnValue_t executeAction(ActionId_t actionId,
MessageQueueId_t commandedBy, const uint8_t* data,
size_t size) override;
Mode_t getTransitionSourceMode() const;
Submode_t getTransitionSourceSubMode() const;
virtual void getMode(Mode_t *mode, Submode_t *submode);
@ -669,7 +671,7 @@ protected:
* Optional Error code
* Can be set in doStartUp(), doShutDown() and doTransition() to signal cause for Transition failure.
*/
ReturnValue_t childTransitionFailure = HasReturnvaluesIF::RETURN_OK;
ReturnValue_t childTransitionFailure;
uint32_t ignoreMissedRepliesCount = 0; //!< Counts if communication channel lost a reply, so some missed replys can be ignored.