Merge pull request 'changed cast to be comptaible with newer freeRTOS' (#85) from KSat/fsfw:mueller_mq_newCast into master

QueueHandle_t is used in the receiveMessage but not in send message. Seems to be the right way to handle both calls in the same way.
As MessageQueueId_t is still a uint32_t. Someday this will get us in trouble.
This commit is contained in:
Steffen Gaisser 2020-06-04 13:20:00 +02:00
commit 2499715ccf

View File

@ -97,7 +97,8 @@ ReturnValue_t MessageQueue::sendMessageFromMessageQueue(MessageQueueId_t sendTo,
bool ignoreFault) {
message->setSender(sentFrom);
BaseType_t result = xQueueSendToBack(reinterpret_cast<void*>(sendTo),reinterpret_cast<const void*>(message->getBuffer()), 0);
BaseType_t result = xQueueSendToBack(reinterpret_cast<QueueHandle_t>(sendTo),
reinterpret_cast<const void*>(message->getBuffer()), 0);
if (result != pdPASS) {
if (!ignoreFault) {
InternalErrorReporterIF* internalErrorReporter = objectManager->get<InternalErrorReporterIF>(