tshell is the default value of FINSH_THREAD_NAME

This commit is contained in:
a1012112796 2022-10-10 21:47:11 +08:00 committed by Man, Jianting (Meco)
parent 74fd07a565
commit ab8c1418a6
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
struct winsize* p_winsize; struct winsize* p_winsize;
p_winsize = (struct winsize*)args; p_winsize = (struct winsize*)args;
if(rt_thread_self() != rt_thread_find("tshell")) if(rt_thread_self() != rt_thread_find(FINSH_THREAD_NAME))
{ {
/* only can be used in tshell thread; otherwise, return default size */ /* only can be used in tshell thread; otherwise, return default size */
p_winsize->ws_col = 80; p_winsize->ws_col = 80;