From 19a8c3e49c6572ac5d56379c2fc3d73dbe31eed1 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 20 Aug 2018 12:20:52 -0700 Subject: [PATCH] rcs:Add comment & test 4 Mini test on all px4io init --- ROMFS/px4fmu_common/init.d/rcS | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 0611a5a783..a39192ff31 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -138,6 +138,7 @@ then hardfault_log reset fi else + # Play the startup tune. tune_control play -t 1 fi else @@ -348,15 +349,13 @@ else if [ -f $IOFW ] then - if px4io checkcrc ${IOFW} + # Check for the mini using build with px4io fw file + # but not a px4IO + if ! ver hwtypecmp V540 then - set IO_PRESENT yes - else - # Check for the mini using build with px4io fw file - # but not a px4IO - if ver hwtypecmp V540 + if px4io checkcrc ${IOFW} then - echo "PX4IO Not Suported" >> $LOG_FILE + set IO_PRESENT yes else # tune Program PX4IO tune_control play -t 18