git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1457 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2009-12-23 09:40:59 +00:00
parent 5f75c01222
commit 5e807d8128
1 changed files with 3 additions and 3 deletions

View File

@ -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 ");