未验证 提交 77e103f6 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3042 from enkiller/pr

[components][drivers][wlan] 修复WLAN事件附加数据为空的问题
......@@ -260,7 +260,8 @@ static rt_err_t rt_wlan_send_to_thread(rt_wlan_event_t event, void *buff, int le
msg->event = event;
if (len != 0)
{
msg->buff = ((char *)msg) + sizeof(struct rt_wlan_msg);
msg->buff = (void *)&msg[1];
rt_memcpy(msg->buff, buff, len);
msg->len = len;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册