mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
mavlink: COLLISION stream check free tx buf before send
This commit is contained in:
committed by
Lorenz Meier
parent
dcb897307d
commit
0d72b47571
@@ -85,7 +85,7 @@ protected:
|
||||
collision_report_s report;
|
||||
bool sent = false;
|
||||
|
||||
while (_collision_sub.update(&report)) {
|
||||
while ((_mavlink->get_free_tx_buf() >= get_size()) && _collision_sub.update(&report)) {
|
||||
mavlink_collision_t msg = {};
|
||||
|
||||
msg.src = report.src;
|
||||
|
||||
Reference in New Issue
Block a user