Merge branch 'develop' into tle-too-old
This commit is contained in:
commit
8e367abb47
@ -28,12 +28,17 @@ FreshDeviceHandlerBase::~FreshDeviceHandlerBase() {
|
||||
}
|
||||
|
||||
ReturnValue_t FreshDeviceHandlerBase::performOperation(uint8_t opCode) {
|
||||
performDeviceOperationPreQueueHandling(opCode);
|
||||
handleQueue();
|
||||
performDeviceOperation(opCode);
|
||||
poolManager.performHkOperation();
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
||||
ReturnValue_t FreshDeviceHandlerBase::performDeviceOperationPreQueueHandling(uint8_t opCode) {
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
||||
void FreshDeviceHandlerBase::startTransition(Mode_t mode_, Submode_t submode_) {
|
||||
triggerEvent(CHANGING_MODE, mode_, submode_);
|
||||
// Complete mode transition immediately by default.
|
||||
|
@ -82,6 +82,12 @@ class FreshDeviceHandlerBase : public SystemObject,
|
||||
|
||||
MessageQueueIF* messageQueue;
|
||||
|
||||
/**
|
||||
* The default queue handler will process all messages for the interfaces implemented
|
||||
* by this class. If there are special requirements, for example that action commands are
|
||||
* received on a different queue, the user can override this function for those special
|
||||
* requirements.
|
||||
*/
|
||||
virtual ReturnValue_t handleQueue();
|
||||
|
||||
// Mode Helpers.
|
||||
@ -153,6 +159,8 @@ class FreshDeviceHandlerBase : public SystemObject,
|
||||
ReturnValue_t getParameter(uint8_t domainId, uint8_t uniqueId, ParameterWrapper* parameterWrapper,
|
||||
const ParameterWrapper* newValues, uint16_t startAtIndex) override;
|
||||
|
||||
virtual ReturnValue_t performDeviceOperationPreQueueHandling(uint8_t opCode);
|
||||
|
||||
private:
|
||||
// Executable Overrides.
|
||||
void setTaskIF(PeriodicTaskIF* task) override;
|
||||
|
Loading…
Reference in New Issue
Block a user