mirror of https://github.com/RT-Thread/rt-thread
![]() [Fix] <components>:finsh/shell.c When using char rt_hw_console_getchar(void), some compilers may default to returning 255 instead of the expected -1, causing the condition if(ch < 0) at F: shell.c L:519 to fail and enter an erroneous loop. Solution: Use the signed char type return value as rt_hw_console_getchar Signed-off-by: Yucai Liu <1486344514@qq.com> |
||
---|---|---|
.. | ||
Kconfig | ||
SConscript | ||
cmd.c | ||
finsh.h | ||
msh.c | ||
msh.h | ||
msh_file.c | ||
msh_parse.c | ||
msh_parse.h | ||
shell.c | ||
shell.h |