AP_Notify: fixed handling of mavlink LED override

This commit is contained in:
Andrew Tridgell 2018-08-29 13:37:34 +10:00 committed by Peter Barker
parent ea2ec9e4a2
commit 2fc95f88ae

View File

@ -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;
}