diff options
Diffstat (limited to 'os/rt/include/chmsg.h')
-rw-r--r-- | os/rt/include/chmsg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/rt/include/chmsg.h b/os/rt/include/chmsg.h index cd4f99897..a907eba93 100644 --- a/os/rt/include/chmsg.h +++ b/os/rt/include/chmsg.h @@ -80,7 +80,7 @@ static inline bool chMsgIsPendingI(thread_t *tp) { chDbgCheckClassI();
- return (bool)(tp->p_msgqueue.p_next != (thread_t *)&tp->p_msgqueue);
+ return (bool)(tp->msgqueue.next != (thread_t *)&tp->msgqueue);
}
/**
@@ -95,9 +95,9 @@ static inline bool chMsgIsPendingI(thread_t *tp) { */
static inline msg_t chMsgGet(thread_t *tp) {
- chDbgAssert(tp->p_state == CH_STATE_SNDMSG, "invalid state");
+ chDbgAssert(tp->state == CH_STATE_SNDMSG, "invalid state");
- return tp->p_u.sentmsg;
+ return tp->u.sentmsg;
}
/**
|