From 5c3f2b783f05d637107c38cabfb05fccbd0acb04 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 24 Aug 2017 10:27:38 -1000 Subject: [PATCH] px4fmu_common:Add passivly starting the PWM rgbled driver Board builds may now inclulde both the PWM and I2C RGB LED To add the PWM RGB LED driver:The board must define BOARD_HAS_LED_PWM and include rgbled_pwm the moulde list. This change attempts to start the PWM rgbled driver, that may or may not be present. If it is not present the +e setting allows the start up to continue. --- ROMFS/px4fmu_common/init.d/rcS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index d5951c5090..a3ce3473a8 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -140,6 +140,10 @@ then fi fi + # FMUv5 may have both PWM I2C RGB LED support + + rgbled_pwm start + # Currently unused, but might be useful down the road #if pca8574 start #then