From 4938ff4c295dafac5ba1c221c6290e9e37e0442f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 21 Feb 2015 12:45:50 +0100 Subject: [PATCH] Indicate test status with RGB led --- ROMFS/px4fmu_test/init.d/rcS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ROMFS/px4fmu_test/init.d/rcS b/ROMFS/px4fmu_test/init.d/rcS index 0f2d32cb3f..233a098b89 100644 --- a/ROMFS/px4fmu_test/init.d/rcS +++ b/ROMFS/px4fmu_test/init.d/rcS @@ -6,6 +6,11 @@ set unit_test_failure 0 uorb start +if rgbled start +then + rgbled rgb 20 20 255 +fi + if sercon then echo "[i] USB interface connected" @@ -217,9 +222,11 @@ if [ $unit_test_failure == 0 ] then echo echo "All Unit Tests PASSED" + rgbled rgb 20 255 20 else echo echo "Some Unit Tests FAILED:${unit_test_failure_list}" + rgbled rgb 255 20 20 fi ver all