From f61c448a240db68f393993ec1de37c8dcbe3c64d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 23 Mar 2023 11:32:46 +0100 Subject: [PATCH] important bugfix --- mission/tmtc/PersistentLogTmStoreTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mission/tmtc/PersistentLogTmStoreTask.cpp b/mission/tmtc/PersistentLogTmStoreTask.cpp index 41d90875..06256d73 100644 --- a/mission/tmtc/PersistentLogTmStoreTask.cpp +++ b/mission/tmtc/PersistentLogTmStoreTask.cpp @@ -26,9 +26,9 @@ ReturnValue_t PersistentLogTmStoreTask::performOperation(uint8_t opCode) { if (not cyclicStoreCheck()) { continue; } + someonesBusy = false; someFileWasSwapped = false; - bool busy = handleOneStore(stores.okStore, okStoreContext); - stateHandlingForStore(busy); + stateHandlingForStore(handleOneStore(stores.okStore, okStoreContext)); stateHandlingForStore(handleOneStore(stores.notOkStore, notOkStoreContext)); stateHandlingForStore(handleOneStore(stores.miscStore, miscStoreContext)); if (not someonesBusy) {