diff options
Diffstat (limited to 'os/rt/src/chevents.c')
-rw-r--r-- | os/rt/src/chevents.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/rt/src/chevents.c b/os/rt/src/chevents.c index ad59f51c0..6b76d0480 100644 --- a/os/rt/src/chevents.c +++ b/os/rt/src/chevents.c @@ -279,7 +279,7 @@ void chEvtSignalI(thread_t *tp, eventmask_t mask) { ((tp->p_epending & tp->p_u.ewmask) != 0)) ||
((tp->p_state == CH_STATE_WTANDEVT) &&
((tp->p_epending & tp->p_u.ewmask) == tp->p_u.ewmask))) {
- tp->p_u.rdymsg = RDY_OK;
+ tp->p_u.rdymsg = MSG_OK;
chSchReadyI(tp);
}
}
@@ -475,7 +475,7 @@ eventmask_t chEvtWaitOneTimeout(eventmask_t mask, systime_t time) { return (eventmask_t)0;
}
ctp->p_u.ewmask = mask;
- if (chSchGoSleepTimeoutS(CH_STATE_WTOREVT, time) < RDY_OK) {
+ if (chSchGoSleepTimeoutS(CH_STATE_WTOREVT, time) < MSG_OK) {
chSysUnlock();
return (eventmask_t)0;
}
@@ -518,7 +518,7 @@ eventmask_t chEvtWaitAnyTimeout(eventmask_t mask, systime_t time) { return (eventmask_t)0;
}
ctp->p_u.ewmask = mask;
- if (chSchGoSleepTimeoutS(CH_STATE_WTOREVT, time) < RDY_OK) {
+ if (chSchGoSleepTimeoutS(CH_STATE_WTOREVT, time) < MSG_OK) {
chSysUnlock();
return (eventmask_t)0;
}
@@ -558,7 +558,7 @@ eventmask_t chEvtWaitAllTimeout(eventmask_t mask, systime_t time) { return (eventmask_t)0;
}
ctp->p_u.ewmask = mask;
- if (chSchGoSleepTimeoutS(CH_STATE_WTANDEVT, time) < RDY_OK) {
+ if (chSchGoSleepTimeoutS(CH_STATE_WTANDEVT, time) < MSG_OK) {
chSysUnlock();
return (eventmask_t)0;
}
|