mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +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;
|
transponder_report_s pos;
|
||||||
bool sent = false;
|
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)) {
|
if (!(pos.flags & transponder_report_s::PX4_ADSB_FLAGS_RETRANSLATE)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user