mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-31 08:20:25 +08:00
[finsh] use the macro definition instead of the const number in the code
This commit is contained in:
parent
eefd87284c
commit
f0fc48922b
@ -367,7 +367,7 @@ struct finsh_token
|
|||||||
int int_value;
|
int int_value;
|
||||||
long long_value;
|
long long_value;
|
||||||
} value;
|
} value;
|
||||||
u_char string[128];
|
u_char string[FINSH_STRING_MAX];
|
||||||
|
|
||||||
u_char* line;
|
u_char* line;
|
||||||
};
|
};
|
||||||
|
@ -543,7 +543,7 @@ void finsh_thread_entry(void *parameter)
|
|||||||
ch = 0;
|
ch = 0;
|
||||||
shell->line_position ++;
|
shell->line_position ++;
|
||||||
shell->line_curpos++;
|
shell->line_curpos++;
|
||||||
if (shell->line_position >= 80)
|
if (shell->line_position >= FINSH_CMD_SIZE)
|
||||||
{
|
{
|
||||||
/* clear command line */
|
/* clear command line */
|
||||||
shell->line_position = 0;
|
shell->line_position = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user