mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
logging: add SDLOG_MODE = -1 to disable logging completely
This commit is contained in:
@@ -24,4 +24,8 @@ then
|
|||||||
set LOGGER_ARGS "-f"
|
set LOGGER_ARGS "-f"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
|
if ! param compare SDLOG_MODE -1
|
||||||
|
then
|
||||||
|
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS}
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ PARAM_DEFINE_INT32(SDLOG_UTC_OFFSET, 0);
|
|||||||
* Determines when to start and stop logging. By default, logging is started
|
* Determines when to start and stop logging. By default, logging is started
|
||||||
* when arming the system, and stopped when disarming.
|
* when arming the system, and stopped when disarming.
|
||||||
*
|
*
|
||||||
|
* @value -1 disabled
|
||||||
* @value 0 when armed until disarm (default)
|
* @value 0 when armed until disarm (default)
|
||||||
* @value 1 from boot until disarm
|
* @value 1 from boot until disarm
|
||||||
* @value 2 from boot until shutdown
|
* @value 2 from boot until shutdown
|
||||||
|
|||||||
Reference in New Issue
Block a user