Skip to content
Snippets Groups Projects
Commit a9930c21 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier
Browse files

logger: avoid logging the padding if it's at the end of a message format

parent bd96afa0
No related branches found
No related tags found
No related merge requests found
......@@ -527,8 +527,7 @@ void Logger::run()
for (LoggerSubscription &sub : _subscriptions) {
/* each message consists of a header followed by an orb data object
*/
size_t msg_size = sizeof(message_data_header_s) + sub.metadata->o_size;
//TODO: use sub.metadata->o_size_no_padding
size_t msg_size = sizeof(message_data_header_s) + sub.metadata->o_size_no_padding;
uint8_t buffer[msg_size];
/* if this topic has been updated, copy the new data into the message buffer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment