diff --git a/cmake/configs/nuttx_px4fmu-v5_default.cmake b/cmake/configs/nuttx_px4fmu-v5_default.cmake index f866340b56..0957a119e3 100644 --- a/cmake/configs/nuttx_px4fmu-v5_default.cmake +++ b/cmake/configs/nuttx_px4fmu-v5_default.cmake @@ -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 diff --git a/src/modules/commander/commander_helper.cpp b/src/modules/commander/commander_helper.cpp index ef874b44f6..5b18a86516 100644 --- a/src/modules/commander/commander_helper.cpp +++ b/src/modules/commander/commander_helper.cpp @@ -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);