提交 5927bf0a 编写于 作者: S sc943313837@gmail.com

set endpoint buffer to RT_NULL

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2480 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 5811daec
......@@ -813,9 +813,7 @@ uep_t rt_usbd_endpoint_create(uep_desc_t ep_desc, udep_handler_t handler)
}
ep->ep_desc = ep_desc;
ep->handler = handler;
/* allocate buffer for endpoint */
ep->buffer = (rt_uint8_t*)rt_malloc(ep_desc->wMaxPacketSize);
ep->buffer = RT_NULL;
return ep;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册