-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rcS move logger startup to rc.logging and end of init
- fixes #8903
- Loading branch information
1 parent
f932217
commit 4aeb70f
Showing
2 changed files
with
35 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!nsh | ||
# Logging | ||
# | ||
# Standard startup script for logging | ||
# | ||
|
||
if param compare SYS_LOGGER 0 | ||
then | ||
sdlog2 start -r 100 -a -b 9 -t | ||
else | ||
set LOGGER_ARGS "" | ||
|
||
if param compare SDLOG_MODE 1 | ||
then | ||
set LOGGER_ARGS "-e" | ||
fi | ||
|
||
if param compare SDLOG_MODE 2 | ||
then | ||
set LOGGER_ARGS "-f" | ||
fi | ||
|
||
if ver hwcmp AEROFC_V1 | ||
then | ||
set LOGGER_ARGS "-m mavlink" | ||
fi | ||
|
||
logger start -b ${LOGGER_BUF} -t ${LOGGER_ARGS} | ||
|
||
unset LOGGER_ARGS | ||
fi | ||
|
||
unset LOGGER_BUF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters