diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-01-07 10:12:42 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-01-07 10:12:42 +0000 |
commit | 0c827780f0dcfe27259e64787afa3fb69e92a42f (patch) | |
tree | 3b7a85909379e04d090d02c911f3976dba7a04cd /os/rt/src | |
parent | 5fc0cb9764bd379d91ca83cd54358c7da2162d55 (diff) | |
download | ChibiOS-0c827780f0dcfe27259e64787afa3fb69e92a42f.tar.gz ChibiOS-0c827780f0dcfe27259e64787afa3fb69e92a42f.tar.bz2 ChibiOS-0c827780f0dcfe27259e64787afa3fb69e92a42f.zip |
Improved messages.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8707 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/src')
-rw-r--r-- | os/rt/src/chmsg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/os/rt/src/chmsg.c b/os/rt/src/chmsg.c index 7b559e8ed..a4a646722 100644 --- a/os/rt/src/chmsg.c +++ b/os/rt/src/chmsg.c @@ -90,8 +90,7 @@ msg_t chMsgSend(thread_t *tp, msg_t msg) { chDbgCheck(tp != NULL);
chSysLock();
- ctp->p_msg = msg;
- ctp->p_u.wtobjp = &tp->p_msgqueue;
+ ctp->p_u.sentmsg = msg;
msg_insert(ctp, &tp->p_msgqueue);
if (tp->p_state == CH_STATE_WTMSG) {
(void) chSchReadyI(tp);
|