diff --git a/src/fsfw/osal/linux/CommandExecutor.cpp b/src/fsfw/osal/linux/CommandExecutor.cpp index bd23f97d..3ec9b982 100644 --- a/src/fsfw/osal/linux/CommandExecutor.cpp +++ b/src/fsfw/osal/linux/CommandExecutor.cpp @@ -156,6 +156,10 @@ int CommandExecutor::getLastError() const { return this->lastError; } +CommandExecutor::States CommandExecutor::getCurrentState() const { + return state; +} + ReturnValue_t CommandExecutor::executeBlocking() { while(fgets(readVec.data(), readVec.size(), currentCmdFile) != nullptr) { std::string output(readVec.data()); diff --git a/src/fsfw/osal/linux/CommandExecutor.h b/src/fsfw/osal/linux/CommandExecutor.h index 2810b67d..21876c6f 100644 --- a/src/fsfw/osal/linux/CommandExecutor.h +++ b/src/fsfw/osal/linux/CommandExecutor.h @@ -97,6 +97,7 @@ public: */ ReturnValue_t close(); + States getCurrentState() const; int getLastError() const; void printLastError(std::string funcName) const;