From 77abaef092e0fee1bf2f6d1239f6dc2810d85da8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 25 Oct 2022 13:18:08 +1100 Subject: [PATCH] GCS_MAVLink: use AP_NOTIFY_MAVLINK_LED_CONTROL_SUPPORT_ENABLED --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 7db451e331..cac7bac41a 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -3786,10 +3786,12 @@ void GCS_MAVLINK::handle_common_message(const mavlink_message_t &msg) handle_statustext(msg); break; +#if AP_NOTIFY_MAVLINK_LED_CONTROL_SUPPORT_ENABLED case MAVLINK_MSG_ID_LED_CONTROL: // send message to Notify AP_Notify::handle_led_control(msg); break; +#endif #if AP_NOTIFY_MAVLINK_PLAY_TUNE_SUPPORT_ENABLED case MAVLINK_MSG_ID_PLAY_TUNE: