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