Added a returnvalue

This commit is contained in:
Steffen Gaisser 2021-05-11 15:30:49 +02:00
parent d807998f4d
commit 9d0155d9ae
Signed by: gaisser
GPG Key ID: 83D8D0FE95C319A6

View File

@ -128,8 +128,7 @@ ReturnValue_t MessageQueue::sendMessageFromMessageQueue(MessageQueueId_t sendTo,
internalErrorReporter->queueMessageNotSent();
}
}
// TODO: Better returnvalue
return HasReturnvaluesIF::RETURN_FAILED;
return MessageQueueIF::DESTINATION_INVALID;
}
if(targetQueue->messageQueue.size() < targetQueue->messageDepth) {
MutexGuard mutexLock(targetQueue->queueLock, MutexIF::TimeoutType::WAITING, 20);