Skip to content

Conversation

@ztlchina
Copy link

rt_mq_recv 的返回值不是RT_EOK了. 而是接收到的长度.

@kurisaW
Copy link
Member

kurisaW commented Jul 24, 2025

建议参考如下形式给出版本控制:

#if defined(RT_VERSION_CHECK) && (RTTHREAD_VERSION >= RT_VERSION_CHECK(4, 1, 1))
 #include <rtdevice.h>
 #else
 #include <touch.h>
 #endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants