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