aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-07-08 05:57:40 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-07-08 05:57:40 +0000
commit32d4ce8ee43227c7a630c7511b3f69a93c1a821e (patch)
tree252de7768d3d3ad8043eec3d446a1449433b2ecc /os/various
parenta1457442696ab3f735cd4385d574893e0e97d6d5 (diff)
downloadChibiOS-32d4ce8ee43227c7a630c7511b3f69a93c1a821e.tar.gz
ChibiOS-32d4ce8ee43227c7a630c7511b3f69a93c1a821e.tar.bz2
ChibiOS-32d4ce8ee43227c7a630c7511b3f69a93c1a821e.zip
Added a termination check to the shell.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12147 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/various')
-rw-r--r--os/various/shell/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/various/shell/shell.c b/os/various/shell/shell.c
index f699901ec..889d561f9 100644
--- a/os/various/shell/shell.c
+++ b/os/various/shell/shell.c
@@ -354,7 +354,7 @@ THD_FUNCTION(shellThread, p) {
chprintf(chp, SHELL_NEWLINE_STR);
chprintf(chp, "ChibiOS/RT Shell" SHELL_NEWLINE_STR);
- while (true) {
+ while (!chThdShouldTerminateX()) {
chprintf(chp, SHELL_PROMPT_STR);
if (shellGetLine(scfg, line, sizeof(line), shp)) {
#if (SHELL_CMD_EXIT_ENABLED == TRUE) && !defined(_CHIBIOS_NIL_)