Small shell improvement.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7440 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2014-11-01 09:28:17 +00:00
parent b9192d716f
commit 8642d175f1
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ bool shellGetLine(BaseSequentialStream *chp, char *line, unsigned size) {
chprintf(chp, "^D");
return TRUE;
}
if (c == 8) {
if ((c == 8) || (c == 127)) {
if (p != line) {
chSequentialStreamPut(chp, c);
chSequentialStreamPut(chp, 0x20);