From a0c246b1da3ab7cf31f01c9f227c353322520de5 Mon Sep 17 00:00:00 2001 From: meggert Date: Wed, 11 Oct 2023 09:24:48 +0200 Subject: [PATCH] rw dummy fix --- dummies/RwDummy.cpp | 18 ++++++++++++++++++ dummies/RwDummy.h | 1 + 2 files changed, 19 insertions(+) diff --git a/dummies/RwDummy.cpp b/dummies/RwDummy.cpp index 0bf4db42..05e14396 100644 --- a/dummies/RwDummy.cpp +++ b/dummies/RwDummy.cpp @@ -93,3 +93,21 @@ ReturnValue_t RwDummy::initializeLocalDataPool(localpool::DataPool &localDataPoo subdp::RegularHkPeriodicParams(lastResetStatusSet.getSid(), false, 30.0)); return returnvalue::OK; } + +LocalPoolDataSetBase *RwDummy::getDataSetHandle(sid_t sid) { + switch (sid.ownerSetId) { + case (rws::SetIds::STATUS_SET_ID): { + return &statusSet; + } + case (rws::SetIds::LAST_RESET_ID): { + return &lastResetStatusSet; + } + case (rws::SetIds::SPEED_CMD_SET): { + return &rwSpeedActuationSet; + } + case (rws::SetIds::TM_SET_ID): { + return &tmDataset; + } + } + return nullptr; +} diff --git a/dummies/RwDummy.h b/dummies/RwDummy.h index 03629937..512c4250 100644 --- a/dummies/RwDummy.h +++ b/dummies/RwDummy.h @@ -37,6 +37,7 @@ class RwDummy : public DeviceHandlerBase { uint32_t getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) override; ReturnValue_t initializeLocalDataPool(localpool::DataPool &localDataPoolMap, LocalDataPoolManager &poolManager) override; + LocalPoolDataSetBase *getDataSetHandle(sid_t sid) override; }; #endif /* DUMMIES_RWDUMMY_H_ */