From 8ff0ac3707200838019743c43faa5ca3d3f8ce06 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 22 Oct 2022 07:46:05 +1100 Subject: [PATCH] Plane: check for EFI enable in messages --- ArduPlane/GCS_Mavlink.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index bf2dae5a3c..eed957f52c 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -3,6 +3,7 @@ #include "Plane.h" #include #include +#include MAV_TYPE GCS_Plane::frame_type() const { @@ -622,7 +623,9 @@ static const ap_message STREAM_EXTRA1_msgs[] = { MSG_PID_TUNING, MSG_LANDING, MSG_ESC_TELEMETRY, +#if HAL_EFI_ENABLED MSG_EFI_STATUS, +#endif #if AP_AIRSPEED_HYGROMETER_ENABLE MSG_HYGROMETER, #endif