Skip to content

Commit 7da82cb

Browse files
committed
[finsh] Fix the echo mode issue in finsh.
1 parent f8c82b0 commit 7da82cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/finsh/shell.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ void finsh_thread_entry(void* parameter)
526526
else
527527
{
528528
shell->line[shell->line_position] = ch;
529-
rt_kprintf("%c", ch);
529+
if (shell->echo_mode)
530+
rt_kprintf("%c", ch);
530531
}
531532

532533
ch = 0;

0 commit comments

Comments
 (0)