mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 14:47:44 +08:00
mavlink: ADSB_VEHICLE stream check free tx buf before send
This commit is contained in:
committed by
Lorenz Meier
parent
0d72b47571
commit
27b631e827
@@ -1878,7 +1878,7 @@ protected:
|
||||
transponder_report_s pos;
|
||||
bool sent = false;
|
||||
|
||||
while (_pos_sub.update(&pos)) {
|
||||
while ((_mavlink->get_free_tx_buf() >= get_size()) && _pos_sub.update(&pos)) {
|
||||
|
||||
if (!(pos.flags & transponder_report_s::PX4_ADSB_FLAGS_RETRANSLATE)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user