Browse Source

AP_Notify: fixed handling of mavlink LED override

master
Andrew Tridgell 7 years ago committed by Peter Barker
parent
commit
2fc95f88ae
  1. 2
      libraries/AP_Notify/RGBLed.cpp

2
libraries/AP_Notify/RGBLed.cpp

@ -204,7 +204,7 @@ void RGBLed::update() @@ -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;
}

Loading…
Cancel
Save