git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1718 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-03-06 09:08:30 +00:00
parent f19cc09417
commit 755c42b99a
1 changed files with 4 additions and 1 deletions

View File

@ -77,8 +77,11 @@ msg_t chMsgWait(void) {
chSysLock();
if (!chMsgIsPendingI(currp))
chSchGoSleepS(THD_STATE_WTMSG);
/* msg = chMsgGetI(currp);*/
#if defined(CH_ARCHITECTURE_STM8)
msg = chMsgGetI((volatile Thread *)currp); /* Temporary hack.*/
#else
msg = chMsgGetI(currp);
#endif
chSysUnlock();
return msg;
}