change OSMesg definition and fix memory corruptions
This commit is contained in:
@@ -87,7 +87,7 @@ void Main(void* arg) {
|
||||
R_ENABLE_ARENA_DBG = 0;
|
||||
|
||||
osCreateMesgQueue(&sSiIntMsgQ, sSiIntMsgBuf, 1);
|
||||
osSetEventMesg(5, &sSiIntMsgQ, 0);
|
||||
osSetEventMesg(5, &sSiIntMsgQ, OS_MESG_PTR(NULL));
|
||||
|
||||
Main_LogSystemHeap();
|
||||
|
||||
@@ -118,7 +118,7 @@ void Main(void* arg) {
|
||||
|
||||
while (true) {
|
||||
msg = NULL;
|
||||
osRecvMesg(&irqMgrMsgQ, (OSMesg)&msg, OS_MESG_BLOCK);
|
||||
osRecvMesg(&irqMgrMsgQ, (OSMesg*)&msg, OS_MESG_BLOCK);
|
||||
if (msg == NULL) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user