[Finsh] Fix command line size issue in finsh.

This commit is contained in:
bernard 2014-07-10 13:35:28 +08:00
parent 1e7b089494
commit f44f6caadb
1 changed files with 6 additions and 0 deletions

View File

@ -530,6 +530,12 @@ 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)
{
/* clear command line */
shell->line_position = 0;
shell->line_curpos = 0;
}
} /* end of device read */ } /* end of device read */
} }
} }