From 61257dfdd2988f51016899d52216791f8597046f Mon Sep 17 00:00:00 2001 From: petriVM18 Date: Wed, 8 Jun 2022 12:53:41 +0200 Subject: [PATCH] Minor refactoring config file handler --- bsp_hosted/GlobalConfigHandler.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bsp_hosted/GlobalConfigHandler.cpp b/bsp_hosted/GlobalConfigHandler.cpp index a2c8ff56..7a995aa3 100644 --- a/bsp_hosted/GlobalConfigHandler.cpp +++ b/bsp_hosted/GlobalConfigHandler.cpp @@ -81,11 +81,18 @@ void GlobalConfigHandler::readCommandQueue(){ if (result == RETURN_OK) { return; } + + result = actionHelper.handleActionMessage(&command); + if (result == HasReturnvaluesIF::RETURN_OK) { + sif::debug<<"GlobalConfigHandler::readCommandQueue handleActionMessage success"<lockMutex(MutexIF::TimeoutType::WAITING, 0); + result = configLock->lockMutex(MutexIF::TimeoutType::WAITING, 10); return result; } ReturnValue_t GlobalConfigHandler::unlockConfigFile(){ @@ -353,5 +360,6 @@ ReturnValue_t GlobalConfigHandler::executeAction(ActionId_t actionId, MessageQueueId_t commandedBy, const uint8_t* data, size_t size) { + //Currently, no commands are used return RETURN_FAILED; }