Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
5ac04dd5
Commit
5ac04dd5
authored
Mar 28, 2024
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUG:
#62
] shell: register diag command only when needed
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
ca692a49
Pipeline
#5265
passed with stage
in 4 minutes and 17 seconds
Changes
1
Pipelines
15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
shell.c
shell/shell.c
+8
-1
No files found.
shell/shell.c
View file @
5ac04dd5
...
...
@@ -64,6 +64,12 @@
#define HAS_CMD_LL 0
#endif
#ifdef CONFIG_AUX_DIAG
#define HAS_CMD_DIAG 1
#else
#define HAS_CMD_DIAG 0
#endif
#ifdef CONFIG_CMD_NETCONSOLE
#define HAS_CMD_NETCONSOLE 1
#else
...
...
@@ -466,6 +472,7 @@ void shell_register_commands(void)
REGISTER_WRC_COMMAND
(
delays
);
if
(
HAS_CMD_LL
)
REGISTER_WRC_COMMAND
(
devmem
);
if
(
HAS_CMD_DIAG
)
REGISTER_WRC_COMMAND
(
diag
);
if
(
HAS_TEMP_FAKE
)
REGISTER_WRC_COMMAND
(
faketemp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment