ROMFS: don't check for UAVCAN_ENABLE param in SITL

This prevents a warning message being printed to SITL users because the
UAVCAN_ENABLE param does not exist.
This commit is contained in:
Julian Oes
2019-04-04 15:30:19 +02:00
committed by Beat Küng
parent 82682ac716
commit 98857b4b94

View File

@@ -4,10 +4,13 @@
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#
if param greater UAVCAN_ENABLE 1
if ! ver hwcmp PX4_SITL
then
# Reduce logger buffer to free up some RAM for UAVCAN servers.
set LOGGER_BUF 6
if param greater UAVCAN_ENABLE 1
then
# Reduce logger buffer to free up some RAM for UAVCAN servers.
set LOGGER_BUF 6
fi
fi
###############################################################################