Robin Mueller
b2fd2f5d83
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
18 lines
721 B
C++
18 lines
721 B
C++
#include <fsfw/tasks/TaskFactory.h>
|
|
#include <mission/tmtc/PersistentSingleTmStoreTask.h>
|
|
|
|
PersistentSingleTmStoreTask::PersistentSingleTmStoreTask(object_id_t objectId,
|
|
StorageManagerIF& ipcStore,
|
|
PersistentTmStoreWithTmQueue& tmStore,
|
|
VirtualChannel& channel)
|
|
: TmStoreTaskBase(objectId, ipcStore, channel), storeWithQueue(tmStore) {}
|
|
|
|
ReturnValue_t PersistentSingleTmStoreTask::performOperation(uint8_t opCode) {
|
|
while (true) {
|
|
bool busy = handleOneStore(storeWithQueue);
|
|
if (not busy) {
|
|
TaskFactory::delayTask(5);
|
|
}
|
|
}
|
|
}
|