mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:23:35 +08:00
led: add breathe mode
This commit is contained in:
@@ -325,6 +325,8 @@ RGBLED::led()
|
||||
break;
|
||||
}
|
||||
|
||||
_brightness = (float)led_control_data.leds[0].brightness / 255.f;
|
||||
|
||||
send_led_rgb();
|
||||
}
|
||||
|
||||
|
||||
@@ -247,6 +247,8 @@ RGBLED_PWM::led()
|
||||
break;
|
||||
}
|
||||
|
||||
_brightness = (float)led_control_data.leds[0].brightness / 255.f;
|
||||
|
||||
send_led_rgb();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user