mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
delete member value initialization in constructor.
This commit is contained in:
parent
506d761d58
commit
12f96adbe2
@ -118,7 +118,6 @@ RGBLED_PWM::RGBLED_PWM() :
|
||||
_r(0),
|
||||
_g(0),
|
||||
_b(0),
|
||||
_brightness(1.0f),
|
||||
_running(false),
|
||||
_should_run(true)
|
||||
{
|
||||
@ -208,8 +207,8 @@ RGBLED_PWM::led()
|
||||
LedControlData led_control_data;
|
||||
|
||||
if (_led_controller.update(led_control_data) == 1) {
|
||||
uint8_t brightness = led_control_data.leds[0].brightness;
|
||||
|
||||
uint8_t brightness = led_control_data.leds[0].brightness;
|
||||
|
||||
switch (led_control_data.leds[0].color) {
|
||||
case led_control_s::COLOR_RED:
|
||||
_r = brightness; _g = 0; _b = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user