mavlink: ADSB_VEHICLE stream check free tx buf before send

This commit is contained in:
Daniel Agar
2020-12-27 19:14:44 -05:00
committed by Lorenz Meier
parent 0d72b47571
commit 27b631e827
+1 -1
View File
@@ -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;