mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
mavlink: CAMERA_IMAGE_CAPTURED stream check free tx buf before send
This commit is contained in:
committed by
Lorenz Meier
parent
27b631e827
commit
ae706537b8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user