From 840a60a1d248be05faec8618f7a0da09a483fe7c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 26 Nov 2023 21:14:25 +1100 Subject: [PATCH] Copter: don't send WINCH_STATUS message if winch not enabled --- ArduCopter/GCS_Mavlink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 139e6d64cd766..7f86eabc8ef5e 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -573,7 +573,9 @@ static const ap_message STREAM_EXTRA3_msgs[] = { #if HAL_GENERATOR_ENABLED MSG_GENERATOR_STATUS, #endif +#if AP_WINCH_ENABLED MSG_WINCH_STATUS, +#endif #if HAL_EFI_ENABLED MSG_EFI_STATUS, #endif