forked from Archive/PX4-Autopilot
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:
parent
326c4f95ce
commit
31b1241de8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue