Robin Mueller
d50cbe9e5b
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
24 lines
928 B
C++
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() {}
|