mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 14:53:35 +08:00
chore(drivers): only start vtxtable when required
This commit is contained in:
@@ -633,12 +633,15 @@ else
|
|||||||
#
|
#
|
||||||
# Start the VTX services.
|
# Start the VTX services.
|
||||||
#
|
#
|
||||||
set RC_VTXTABLE ${R}etc/init.d/rc.vtxtable
|
if ! param compare VTX_SER_CFG 0
|
||||||
if [ -f ${RC_VTXTABLE} ]
|
|
||||||
then
|
then
|
||||||
. ${RC_VTXTABLE}
|
set RC_VTXTABLE ${R}etc/init.d/rc.vtxtable
|
||||||
|
if [ -f ${RC_VTXTABLE} ]
|
||||||
|
then
|
||||||
|
. ${RC_VTXTABLE}
|
||||||
|
fi
|
||||||
|
unset RC_VTXTABLE
|
||||||
fi
|
fi
|
||||||
unset RC_VTXTABLE
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set additional parameters and env variables for selected AUTOSTART.
|
# Set additional parameters and env variables for selected AUTOSTART.
|
||||||
|
|||||||
Reference in New Issue
Block a user