mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 12:13:34 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user