tshell is the default value of FINSH_THREAD_NAME
This commit is contained in:
parent
74fd07a565
commit
ab8c1418a6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue