Explorar o código

[ipc] fix IAR Compilation error

tangyuxin %!s(int64=4) %!d(string=hai) anos
pai
achega
be864bcdd1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ipc.c

+ 1 - 1
src/ipc.c

@@ -2203,7 +2203,7 @@ rt_err_t rt_mq_send_wait(rt_mq_t     mq,
     }
     }
 
 
     /* message queue is full */
     /* message queue is full */
-    while ((msg = mq->msg_queue_free) == RT_NULL)
+    while ((msg = (struct rt_mq_message *)mq->msg_queue_free) == RT_NULL)
     {
     {
         /* reset error number in thread */
         /* reset error number in thread */
         thread->error = RT_EOK;
         thread->error = RT_EOK;