Merge pull request 'bugfix for RTEMS' (#395) from rtems/hotfix-mq into development

Reviewed-on: #395
This commit is contained in:
Steffen Gaisser 2021-04-08 16:31:21 +02:00
commit b4594e6f43

View File

@ -61,7 +61,7 @@ ReturnValue_t MessageQueue::receiveMessage(MessageQueueMessageIF* message) {
} else {
//No message was received. Keep lastPartner anyway, I might send something later.
//But still, delete packet content.
memset(message->getData(), 0, message->getMaximumMessageSize());
memset(message->getData(), 0, message->getMaximumDataSize());
}
return convertReturnCode(status);
}