未验证 提交 9ad0cb21 编写于 作者: lymzzyh's avatar lymzzyh 提交者: GitHub

Merge pull request #1280 from charlown/master

fix cdc_vcom.c notify receive data.
......@@ -304,7 +304,8 @@ static rt_err_t _ep_out_handler(ufunction_t func, rt_size_t size)
data = (struct vcom*)func->user_data;
/* ensure serial is active */
if(data->serial.parent.open_flag & RT_DEVICE_FLAG_ACTIVATED)
if((data->serial.parent.flag & RT_DEVICE_FLAG_ACTIVATED)
&& (data->serial.parent.open_flag & RT_DEVICE_OFLAG_OPEN))
{
/* receive data from USB VCOM */
level = rt_hw_interrupt_disable();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册