diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-03-20 16:58:20 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-03-20 16:58:20 +0100 |
commit | 239a0cc1550ac872bbef1822ad11674edef3df2c (patch) | |
tree | 5a56d580fe2d90618f23c5f539d90a4be97f5e5b /ROMFS/px4fmu_common/init.d/rcS | |
parent | 6bd5b11b040092cc59283e007825276d4b17c009 (diff) | |
parent | 4466dbf0b37f0a80790c346affee1e4ac86bef22 (diff) | |
download | px4-firmware-239a0cc1550ac872bbef1822ad11674edef3df2c.tar.gz px4-firmware-239a0cc1550ac872bbef1822ad11674edef3df2c.tar.bz2 px4-firmware-239a0cc1550ac872bbef1822ad11674edef3df2c.zip |
Merge pull request #746 from thomasgubler/useioparam
add SYS_USE_IO param
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rcS')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rcS | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 7c3524fef..65a66a085 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -108,7 +108,6 @@ then set HIL no set VEHICLE_TYPE none set MIXER none - set USE_IO yes set OUTPUT_MODE none set PWM_OUTPUTS none set PWM_RATE none @@ -129,6 +128,16 @@ then else set DO_AUTOCONFIG no fi + + # + # Set USE_IO flag + # + if param compare SYS_USE_IO 1 + then + set USE_IO yes + else + set USE_IO no + fi # # Set parameters and env variables for selected AUTOSTART |