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
This commit is contained in:
Giovanni Di Sirio 2018-07-08 05:57:40 +00:00
parent a145744269
commit 32d4ce8ee4
2 changed files with 2 additions and 1 deletions

View File

@ -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_)

View File

@ -91,6 +91,7 @@
*****************************************************************************
*** Next ***
- NEW: Added a termination check to the shell.
- NEW: Updated CMSIS to version 5.3.0.
- NEW: Now chconf.h files have preprocessor checks around each definition,
this allows to override settings from makefiles.