aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-11 16:15:54 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-11 16:15:54 +0000
commit0f8d30486bffb71cd431e67084fcc502411236b9 (patch)
tree82a9da358488a863b6104b355adfd88ef724a2d6 /demos/Win32-MinGW
parentb3dc7043a082c8838a2cee518a7113a2268a5770 (diff)
downloadChibiOS-0f8d30486bffb71cd431e67084fcc502411236b9.tar.gz
ChibiOS-0f8d30486bffb71cd431e67084fcc502411236b9.tar.bz2
ChibiOS-0f8d30486bffb71cd431e67084fcc502411236b9.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1417 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/Win32-MinGW')
-rw-r--r--demos/Win32-MinGW/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/Win32-MinGW/main.c b/demos/Win32-MinGW/main.c
index 140f3bd79..01ca7cad9 100644
--- a/demos/Win32-MinGW/main.c
+++ b/demos/Win32-MinGW/main.c
@@ -91,6 +91,7 @@ static void termination_handler(eventid_t id) {
if (shelltp1 && chThdTerminated(shelltp1)) {
chThdWait(shelltp1);
shelltp1 = NULL;
+ chThdSleepMilliseconds(10);
cprint("Init: shell on SD1 terminated\n");
chSysLock();
chOQResetI(&SD1.d2.oqueue);
@@ -99,6 +100,7 @@ static void termination_handler(eventid_t id) {
if (shelltp2 && chThdTerminated(shelltp2)) {
chThdWait(shelltp2);
shelltp2 = NULL;
+ chThdSleepMilliseconds(10);
cprint("Init: shell on SD2 terminated\n");
chSysLock();
chOQResetI(&SD2.d2.oqueue);