|
|
@@ -1,5 +1,6 @@
|
|
|
-
|
|
|
+#include "luat_base.h"
|
|
|
#include "luat_msgbus.h"
|
|
|
+#include "luat_malloc.h"
|
|
|
#include "wm_osal.h"
|
|
|
static tls_os_queue_t *queue = NULL;
|
|
|
|
|
|
@@ -16,7 +17,7 @@ uint32_t luat_msgbus_put(rtos_msg_t *msg, size_t timeout)
|
|
|
{
|
|
|
return 1;
|
|
|
}
|
|
|
- rtos_msg_t* dst = luat_heap_malloc(sizeof(rtos_msg_t));
|
|
|
+ rtos_msg_t* dst = (rtos_msg_t*)luat_heap_malloc(sizeof(rtos_msg_t));
|
|
|
memcpy(dst, msg, sizeof(rtos_msg_t));
|
|
|
int ret = tls_os_queue_send(queue, (void *)dst, sizeof(rtos_msg_t));
|
|
|
return ret;
|