FMUv5: Fix RGB led usage - these are individual status leds.

This commit is contained in:
Lorenz Meier 2018-06-06 22:45:16 +02:00
parent 02eaf2ce28
commit f87fa9131b
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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);