From 2fc95f88ae3e7d0ea8a9df18b2ace4985eca7165 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 29 Aug 2018 13:37:34 +1000 Subject: [PATCH] AP_Notify: fixed handling of mavlink LED override --- libraries/AP_Notify/RGBLed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Notify/RGBLed.cpp b/libraries/AP_Notify/RGBLed.cpp index 0f77351169..cc1c2a170d 100644 --- a/libraries/AP_Notify/RGBLed.cpp +++ b/libraries/AP_Notify/RGBLed.cpp @@ -204,7 +204,7 @@ void RGBLed::update() */ void RGBLed::handle_led_control(mavlink_message_t *msg) { - if (rgb_source() == mavlink) { + if (rgb_source() != mavlink) { // ignore LED_CONTROL commands if not in LED_OVERRIDE mode return; }