From 825880ab5505d5a36e5772c3291ab916347269d4 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 10 Aug 2015 22:26:09 +0200 Subject: [PATCH] Only start PX4FLOW driver on FMUv2 --- ROMFS/px4fmu_common/init.d/rcS | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 1c9fd9445b..ff873adac0 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -705,12 +705,17 @@ then # End of autostart fi +# There is no further script processing, so we can free some RAM +# XXX potentially unset all script variables. +unset TUNE_ERR + # Boot is complete, inform MAVLink app(s) that the system is now fully up and running mavlink boot_complete -# Check for flow sensor - as it is a background task, launch it last -if px4flow start & +if ver hwcmp PX4FMU_V2 then + # Check for flow sensor - as it is a background task, launch it last + px4flow start & fi if [ $EXIT_ON_END == yes ] @@ -719,7 +724,3 @@ then exit fi unset EXIT_ON_END - -# There is no further processing, so we can free some RAM -# XXX potentially unset all script variables. -unset TUNE_ERR