From eb58dae51b03950dd28b6c233da3138c1549cec0 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 8 Mar 2019 14:40:31 -0800 Subject: [PATCH] lights:Remove conditional rgb led starting (do all of them) There is no need to not to start a pwm based led or a rgbled_ncp5623c if the old TCA62724FMG is started. They will all work in parallel. --- ROMFS/px4fmu_common/init.d/rcS | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index b9020b9df2..f162f72ed1 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -194,20 +194,13 @@ else # # Start system state indicator. # - if ! rgbled start + rgbled start + rgbled_ncp5623c start + rgbled_pwm start + + if blinkm start then - - rgbled_ncp5623c start - - # - # FMUv5 may have both PWM I2C RGB LED support. - # - rgbled_pwm start - - if blinkm start - then - blinkm systemstate - fi + blinkm systemstate fi #