diff options
| author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-10 12:01:22 +0000 | 
|---|---|---|
| committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-10 12:01:22 +0000 | 
| commit | 524016ca3a096627f84958d131b3a07784ed505a (patch) | |
| tree | 2aed1276159d7cb6df791dde21d3c93c95a4c699 | |
| parent | c6da283acda7fe9458f3240be66d70f424f0e031 (diff) | |
| download | ChibiOS-524016ca3a096627f84958d131b3a07784ed505a.tar.gz ChibiOS-524016ca3a096627f84958d131b3a07784ed505a.tar.bz2 ChibiOS-524016ca3a096627f84958d131b3a07784ed505a.zip | |
Shell exit fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9274 35acf78f-673a-0410-8e92-d51de3d6d3f4
| -rw-r--r-- | os/various/shell/shell.c | 11 | 
1 files changed, 2 insertions, 9 deletions
| diff --git a/os/various/shell/shell.c b/os/various/shell/shell.c index a0998fbbe..269ba1818 100644 --- a/os/various/shell/shell.c +++ b/os/various/shell/shell.c @@ -156,19 +156,12 @@ THD_FUNCTION(shellThread, p) {      }
      args[n] = NULL;
      if (cmd != NULL) {
 -      if (strcmp(cmd, "exit") == 0) {
 -        if (n > 0) {
 -          usage(chp, "exit");
 -          continue;
 -        }
 -        break;
 -      }
 -      else if (strcmp(cmd, "help") == 0) {
 +      if (strcmp(cmd, "help") == 0) {
          if (n > 0) {
            usage(chp, "help");
            continue;
          }
 -        chprintf(chp, "Commands: help exit ");
 +        chprintf(chp, "Commands: help ");
          list_commands(chp, shell_local_commands);
          if (scp != NULL)
            list_commands(chp, scp);
 | 
