diff options
-rw-r--r-- | demos/Win32-MinGW/main.c | 2 |
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);
|