From efada8768e688504a961c0f185ffbecd46266300 Mon Sep 17 00:00:00 2001 From: aozima Date: Mon, 2 Jul 2018 19:46:37 +0800 Subject: [shell] set prompt mode is default enable. --- components/finsh/shell.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components') diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 0109a761bc..29034bb286 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -34,6 +34,7 @@ * 2011-02-23 Bernard fix variable section end issue of finsh shell * initialization when use GNU GCC compiler. * 2016-11-26 armink add password authentication + * 2018-07-02 aozima add custome prompt support. */ #include @@ -853,6 +854,7 @@ int finsh_system_init(void) #endif /* RT_USING_HEAP */ rt_sem_init(&(shell->rx_sem), "shrx", 0, 0); + finsh_set_prompt_mode(1); if (tid != NULL && result == RT_EOK) rt_thread_startup(tid); -- cgit v1.3.1