From e2a25265060650f5e7afcf73c2330cd21ad86010 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 28 Sep 2022 11:37:45 +1000 Subject: [PATCH] ArduPlane: do not send MSG_RPM if RPM not enabled --- ArduPlane/GCS_Mavlink.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 2e37f74e54..97ae814ee7 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1,6 +1,7 @@ #include "GCS_Mavlink.h" #include "Plane.h" +#include MAV_TYPE GCS_Plane::frame_type() const { @@ -567,7 +568,9 @@ static const ap_message STREAM_EXTRA1_msgs[] = { MSG_ATTITUDE, MSG_SIMSTATE, MSG_AHRS2, +#if AP_RPM_ENABLED MSG_RPM, +#endif MSG_AOA_SSA, MSG_PID_TUNING, MSG_LANDING,