mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Notify: fixed handling of mavlink LED override
This commit is contained in:
parent
ea2ec9e4a2
commit
2fc95f88ae
@ -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…
Reference in New Issue
Block a user