diff options
Diffstat (limited to 'os/rt/src/chschd.c')
-rw-r--r-- | os/rt/src/chschd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/rt/src/chschd.c b/os/rt/src/chschd.c index 572b2f822..1e844b7b0 100644 --- a/os/rt/src/chschd.c +++ b/os/rt/src/chschd.c @@ -147,6 +147,9 @@ static void wakeup(void *p) { another thread with higher priority.*/
chSysUnlockFromISR();
return;
+ case CH_STATE_SUSPENDED:
+ *(thread_reference_t *)tp->p_u.wtobjp = NULL;
+ break;
#if CH_CFG_USE_SEMAPHORES
case CH_STATE_WTSEM:
chSemFastSignalI((semaphore_t *)tp->p_u.wtobjp);
|