From b17c0482fb425a624435400040dbe0774ba89bd8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 17 Aug 2017 13:43:45 +1000 Subject: [PATCH] GCS_MAVLink: move play_tune and led_control handling to base class --- libraries/GCS_MAVLink/GCS_Common.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 455e3c37aa..df85ff2f95 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1846,6 +1846,16 @@ void GCS_MAVLINK::handle_common_message(mavlink_message_t *msg) handle_statustext(msg); break; + case MAVLINK_MSG_ID_LED_CONTROL: + // send message to Notify + AP_Notify::handle_led_control(msg); + break; + + case MAVLINK_MSG_ID_PLAY_TUNE: + // send message to Notify + AP_Notify::handle_play_tune(msg); + break; + case MAVLINK_MSG_ID_RALLY_POINT: /* fall through */ case MAVLINK_MSG_ID_RALLY_FETCH_POINT: