mavlink: CAMERA_IMAGE_CAPTURED stream check free tx buf before send

This commit is contained in:
Daniel Agar
2020-12-27 19:16:38 -05:00
committed by Lorenz Meier
parent 27b631e827
commit ae706537b8
+1 -2
View File
@@ -2254,8 +2254,7 @@ protected:
{
camera_capture_s capture;
if (_capture_sub.update(&capture)) {
if ((_mavlink->get_free_tx_buf() >= get_size()) && _capture_sub.update(&capture)) {
mavlink_camera_image_captured_t msg{};
msg.time_boot_ms = capture.timestamp / 1000;