mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
ROMFS: fix shellcheck error in px4-rc.simulator (#21282)
This commit is contained in:
committed by
GitHub
parent
bd5838faf0
commit
91f6ab865c
@@ -8,11 +8,11 @@ if [ "$PX4_SIMULATOR" = "sihsim" ] || [ "$(param show -q SYS_AUTOSTART)" -eq "0"
|
|||||||
|
|
||||||
echo "INFO [init] SIH simulator"
|
echo "INFO [init] SIH simulator"
|
||||||
|
|
||||||
if [ ! -z "${PX4_HOME_LAT}" ]; then
|
if [ -n "${PX4_HOME_LAT}" ]; then
|
||||||
param set SIH_LOC_LAT0 ${PX4_HOME_LAT}
|
param set SIH_LOC_LAT0 ${PX4_HOME_LAT}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "${PX4_HOME_LON}" ]; then
|
if [ -n "${PX4_HOME_LON}" ]; then
|
||||||
param set SIH_LOC_LON0 ${PX4_HOME_LON}
|
param set SIH_LOC_LON0 ${PX4_HOME_LON}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user