forked from Archive/PX4-Autopilot
FMUv5: Fix RGB led usage - these are individual status leds.
This commit is contained in:
parent
02eaf2ce28
commit
f87fa9131b
|
@ -31,7 +31,8 @@ set(config_module_list
|
|||
drivers/px4fmu
|
||||
drivers/px4io
|
||||
drivers/rgbled
|
||||
drivers/rgbled_pwm
|
||||
# Enable the line below to put the three leds into PWM RGB mode
|
||||
#drivers/rgbled_pwm
|
||||
drivers/stm32
|
||||
drivers/stm32/adc
|
||||
drivers/stm32/tone_alarm
|
||||
|
|
|
@ -288,6 +288,9 @@ int led_init()
|
|||
return PX4_ERROR;
|
||||
}
|
||||
|
||||
/* the green LED is only available on FMUv5 */
|
||||
(void)h_leds.ioctl(LED_ON, LED_GREEN);
|
||||
|
||||
/* the blue LED is only available on AeroCore but not FMUv2 */
|
||||
(void)h_leds.ioctl(LED_ON, LED_BLUE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue