eive-obsw/mission/tmtc/PersistentSingleTmStoreTask.cpp
Robin Mueller d50cbe9e5b
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
added missing store initialization code
2023-03-09 20:16:00 +01:00

24 lines
928 B
C++

#include <fsfw/tasks/TaskFactory.h>
#include <mission/tmtc/PersistentSingleTmStoreTask.h>
PersistentSingleTmStoreTask::PersistentSingleTmStoreTask(object_id_t objectId,
StorageManagerIF& ipcStore,
PersistentTmStoreWithTmQueue& tmStore,
VirtualChannel& channel,
SdCardMountedIF& sdcMan)
: TmStoreTaskBase(objectId, ipcStore, channel, sdcMan), storeWithQueue(tmStore) {}
ReturnValue_t PersistentSingleTmStoreTask::performOperation(uint8_t opCode) {
while (true) {
if (not cyclicStoreCheck()) {
continue;
}
bool busy = handleOneStore(storeWithQueue);
if (not busy) {
TaskFactory::delayTask(5);
}
}
}
void PersistentSingleTmStoreTask::initStoresIfPossible() {}