ROMFS: If UAVCAN is enabled, reduce log buffer size

This is necessary to make the space for UAVCAN in memory and doing it this way avoids negatively impacting users who do not use UAVCAN.
This commit is contained in:
Lorenz Meier 2017-05-01 18:24:42 +02:00
parent 3ecb07f5db
commit dbf754eab1
1 changed files with 4 additions and 1 deletions

View File

@ -196,6 +196,7 @@ then
set MAV_TYPE none set MAV_TYPE none
set FAILSAFE none set FAILSAFE none
set USE_IO yes set USE_IO yes
set LOGGER_BUF 16
# #
# Set USE_IO flag # Set USE_IO flag
@ -738,6 +739,7 @@ then
then then
if uavcan start if uavcan start
then then
set LOGGER_BUF 7
uavcan start fw uavcan start fw
else else
tone_alarm ${TUNE_ERR} tone_alarm ${TUNE_ERR}
@ -875,9 +877,10 @@ then
then then
set LOGGER_ARGS "-m mavlink" set LOGGER_ARGS "-m mavlink"
fi fi
if logger start -b 16 -t ${LOGGER_ARGS} if logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
then then
fi fi
unset LOGGER_BUF
unset LOGGER_ARGS unset LOGGER_ARGS
fi fi
fi fi