git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1457 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5f75c01222
commit
5e807d8128
|
@ -119,7 +119,7 @@ static bool_t cmdexec(const ShellCommand *scp, BaseChannel *chp,
|
||||||
char *name, int argc, char *argv[]) {
|
char *name, int argc, char *argv[]) {
|
||||||
|
|
||||||
while (scp->sc_name != NULL) {
|
while (scp->sc_name != NULL) {
|
||||||
if (strcmpi(scp->sc_name, name) == 0) {
|
if (strcasecmp(scp->sc_name, name) == 0) {
|
||||||
scp->sc_function(chp, argc, argv);
|
scp->sc_function(chp, argc, argv);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -165,12 +165,12 @@ static msg_t shell_thread(void *p) {
|
||||||
}
|
}
|
||||||
args[n] = NULL;
|
args[n] = NULL;
|
||||||
if (cmd != NULL) {
|
if (cmd != NULL) {
|
||||||
if (strcmpi(cmd, "exit") == 0) {
|
if (strcasecmp(cmd, "exit") == 0) {
|
||||||
if (n > 0)
|
if (n > 0)
|
||||||
usage(chp, "exit");
|
usage(chp, "exit");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (strcmpi(cmd, "help") == 0) {
|
else if (strcasecmp(cmd, "help") == 0) {
|
||||||
if (n > 0)
|
if (n > 0)
|
||||||
usage(chp, "help");
|
usage(chp, "help");
|
||||||
shellPrint(chp, "Commands: help exit ");
|
shellPrint(chp, "Commands: help exit ");
|
||||||
|
|
Loading…
Reference in New Issue