From 73db351c114c2801074eb32bd044f0c87b0c9c00 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 28 Sep 2022 11:37:45 +1000 Subject: [PATCH] Blimp: do not send MSG_RPM if RPM not enabled --- Blimp/GCS_Mavlink.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Blimp/GCS_Mavlink.cpp b/Blimp/GCS_Mavlink.cpp index aae0d1dc30..c51054eb4c 100644 --- a/Blimp/GCS_Mavlink.cpp +++ b/Blimp/GCS_Mavlink.cpp @@ -1,6 +1,7 @@ #include "Blimp.h" #include "GCS_Mavlink.h" +#include MAV_TYPE GCS_Blimp::frame_type() const { @@ -358,7 +359,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { MSG_MAG_CAL_PROGRESS, MSG_EKF_STATUS_REPORT, MSG_VIBRATION, +#if AP_RPM_ENABLED MSG_RPM, +#endif MSG_ESC_TELEMETRY, MSG_GENERATOR_STATUS, };