summaryrefslogtreecommitdiff
path: root/components/finsh/shell.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2016-03-01 10:56:46 +0800
committerBernard Xiong <[email protected]>2016-03-01 10:56:46 +0800
commitf0fc48922bcf3c3e1c9f752510ae0a576e89b6ab (patch)
tree974568fb6f409f22abeec61e6e4f6a550e33425a /components/finsh/shell.c
parenteefd87284ccb07fe1994f2e55d8fa5cb0dbc4f8c (diff)
[finsh] use the macro definition instead of the const number in the code
Diffstat (limited to 'components/finsh/shell.c')
-rw-r--r--components/finsh/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index a04214b727..ae0934f5d1 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -543,7 +543,7 @@ void finsh_thread_entry(void *parameter)
ch = 0;
shell->line_position ++;
shell->line_curpos++;
- if (shell->line_position >= 80)
+ if (shell->line_position >= FINSH_CMD_SIZE)
{
/* clear command line */
shell->line_position = 0;