diff options
Diffstat (limited to 'src/chsleep.c')
-rw-r--r-- | src/chsleep.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/chsleep.c b/src/chsleep.c index 3abf22cd2..b6c31e1a4 100644 --- a/src/chsleep.c +++ b/src/chsleep.c @@ -27,10 +27,7 @@ #ifdef CH_USE_SLEEP
static void wakeup(void *p) {
-#ifdef CH_USE_DEBUG
- if (((Thread *)p)->p_state != PRSLEEP)
- chDbgPanic("chsleep.c, wakeup()");
-#endif
+ chDbgAssert(((Thread *)p)->p_state == PRSLEEP, "chsleep.c, wakeup()");
chSchReadyI(p, RDY_OK);
}
@@ -72,4 +69,3 @@ void chThdSleepUntil(t_time time) { #endif /* CH_USE_SLEEP */
/** @} */
-
|