posix rcS fix shellcheck SC2236

This commit is contained in:
Daniel Agar 2020-06-20 20:16:35 -04:00
parent 32c2064673
commit b6292a1a2d
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ param set COM_CPU_MAX -1 # disable check, no CPU load reported on posix yet
param set IMU_INTEG_RATE 250
# Adapt timeout parameters if simulation runs faster or slower than realtime.
if [ ! -z $PX4_SIM_SPEED_FACTOR ]; then
if [ -n "$PX4_SIM_SPEED_FACTOR" ]; then
COM_DL_LOSS_T_LONGER=$(echo "$PX4_SIM_SPEED_FACTOR * 10" | bc)
echo "COM_DL_LOSS_T set to $COM_DL_LOSS_T_LONGER"
param set COM_DL_LOSS_T $COM_DL_LOSS_T_LONGER