mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
rc.io:Add USE_IO == yes && IO_PRESENT == yes test
On a FMU without a px4io (FMUv4, NXPhlite etc), this code should not be run.
This commit is contained in:
committed by
Daniel Agar
parent
346224a0c6
commit
dd69427cbf
@@ -2,7 +2,8 @@
|
|||||||
#
|
#
|
||||||
# PX4IO interface init script.
|
# PX4IO interface init script.
|
||||||
#
|
#
|
||||||
|
if [ $USE_IO == yes -a $IO_PRESENT == yes ]
|
||||||
|
then
|
||||||
if px4io start
|
if px4io start
|
||||||
then
|
then
|
||||||
# Allow PX4IO to recover from midair restarts.
|
# Allow PX4IO to recover from midair restarts.
|
||||||
@@ -14,3 +15,4 @@ else
|
|||||||
echo "PX4IO start failed" >> $LOG_FILE
|
echo "PX4IO start failed" >> $LOG_FILE
|
||||||
tune_control play -m ${TUNE_ERR}
|
tune_control play -m ${TUNE_ERR}
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user