From b6292a1a2dc62b204905431e641ddeb1c83a23d6 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 20 Jun 2020 20:16:35 -0400 Subject: [PATCH] posix rcS fix shellcheck SC2236 --- ROMFS/px4fmu_common/init.d-posix/rcS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ROMFS/px4fmu_common/init.d-posix/rcS b/ROMFS/px4fmu_common/init.d-posix/rcS index 7de8874f90..b4c5c718e4 100644 --- a/ROMFS/px4fmu_common/init.d-posix/rcS +++ b/ROMFS/px4fmu_common/init.d-posix/rcS @@ -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