diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index e449e0c2dcdd0367f59d4dfeb2ef62b5d79d8ca6..7d24a33d6a27a3c99b0d01af57daef1dc7c54ad1 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -623,7 +623,6 @@ int list_mod_detail(const char *name) return 0; } FINSH_FUNCTION_EXPORT(list_mod_detail, list module objects in system) -MSH_CMD_EXPORT(list_mod_detail, list module objects in system) #endif long list(void) diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 125dcec198703284870605042843eff05eea88d7..f28e235b3fed8ffb4c1e5bbc6c9577df817bd9e4 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -526,7 +526,8 @@ void finsh_thread_entry(void* parameter) else { shell->line[shell->line_position] = ch; - rt_kprintf("%c", ch); + if (shell->echo_mode) + rt_kprintf("%c", ch); } ch = 0;