uorb_microcdr: collect all messages

Without this we are potentially too slow to collect them all which can
lead to the buffer in protocol_splitter to overflow and be reset.
This commit is contained in:
Julian Oes 2021-06-29 11:40:08 +02:00 committed by Nuno Marques
parent 326c4f95ce
commit 31b1241de8
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ void micrortps_start_topics(const uint32_t &datarate, struct timespec &begin, ui
while (!_should_exit_task) {
@[if recv_topics]@
if (0 < (read = transport_node->read(&topic_ID, data_buffer, BUFFER_SIZE))) {
while (0 < (read = transport_node->read(&topic_ID, data_buffer, BUFFER_SIZE))) {
total_rcvd += read;
rx_last_sec_read += read;