Minor refactoring config file handler
EIVE/eive-obsw/pipeline/head There was a failure building this commit Details

This commit is contained in:
petriVM18 2022-06-08 12:53:41 +02:00
parent 8b6992df6d
commit 61257dfdd2
1 changed files with 9 additions and 1 deletions

View File

@ -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"<<std::endl;
return;
}
return;
}
ReturnValue_t GlobalConfigHandler::lockConfigFile(){
ReturnValue_t result = RETURN_OK;
result = configLock->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;
}