mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-01 02:40:12 +08:00
[Finsh] Fix command line size issue in finsh.
This commit is contained in:
1 parent
1e7b089494
commit
f44f6caadb
1 file changed
+6
@@ -530,6 +530,12 @@ void finsh_thread_entry(void* parameter)
|
||||
ch = 0;
|
||||
shell->line_position ++;
|
||||
shell->line_curpos++;
|
||||
if (shell->line_position >= 80)
|
||||
{
|
||||
/* clear command line */
|
||||
shell->line_position = 0;
|
||||
shell->line_curpos = 0;
|
||||
}
|
||||
} /* end of device read */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user