Shell exit fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9274 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
c6da283acd
commit
524016ca3a
|
@ -156,19 +156,12 @@ THD_FUNCTION(shellThread, p) {
|
||||||
}
|
}
|
||||||
args[n] = NULL;
|
args[n] = NULL;
|
||||||
if (cmd != NULL) {
|
if (cmd != NULL) {
|
||||||
if (strcmp(cmd, "exit") == 0) {
|
if (strcmp(cmd, "help") == 0) {
|
||||||
if (n > 0) {
|
|
||||||
usage(chp, "exit");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else if (strcmp(cmd, "help") == 0) {
|
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
usage(chp, "help");
|
usage(chp, "help");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
chprintf(chp, "Commands: help exit ");
|
chprintf(chp, "Commands: help ");
|
||||||
list_commands(chp, shell_local_commands);
|
list_commands(chp, shell_local_commands);
|
||||||
if (scp != NULL)
|
if (scp != NULL)
|
||||||
list_commands(chp, scp);
|
list_commands(chp, scp);
|
||||||
|
|
Loading…
Reference in New Issue