未验证 提交 372858f9 编写于 作者: G guo 提交者: GitHub

[finsh] Fix formatting issues

上级 25bd908f
......@@ -145,18 +145,17 @@ void finsh_set_prompt_mode(rt_uint32_t prompt_mode)
int finsh_getchar(void)
{
#ifdef RT_USING_DEVICE
char ch = 0;
#ifdef RT_USING_POSIX
int c;
if(read(STDIN_FILENO,&c,1)>0)
if(read(STDIN_FILENO, &ch, 1) > 0)
{
return c;
return ch;
}
else
{
return -1; /* EOF */
}
#else
char ch = 0;
rt_device_t device;
RT_ASSERT(shell != RT_NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册