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:
parent
b9192d716f
commit
8642d175f1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue