You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
660 B

#!nsh
# Standard startup script for logging.
#
# NOTE: Script variables are declared/initialized/unset in the rcS script.
#
if param greater UAVCAN_ENABLE 1
then
# Reduce logger buffer to free up some RAM for UAVCAN servers.
set LOGGER_BUF 6
fi
###############################################################################
# End Setup for board specific configurations. #
###############################################################################
7 years ago
if param compare SDLOG_MODE 1
then
set LOGGER_ARGS "-e"
fi
7 years ago
if param compare SDLOG_MODE 2
then
set LOGGER_ARGS "-f"
fi
7 years ago
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}