提交 58317f5b 编写于 作者: H heyuanjie87

use new interface to send status in control transfer

上级 96f5a6dc
......@@ -325,7 +325,7 @@ static rt_err_t _set_config(struct udevice* device, ureq_t setup)
}
/* issue status stage */
rt_device_control((rt_device_t)device->dcd, CONTROL_SEND_STATUS, RT_NULL);
dcd_send_status(device->dcd);
return RT_EOK;
}
......@@ -350,7 +350,7 @@ static rt_err_t _set_address(struct udevice* device, ureq_t setup)
dcd_set_address(device->dcd, setup->value);
/* issue status stage */
rt_device_control((rt_device_t)device->dcd, CONTROL_SEND_STATUS, RT_NULL);
dcd_send_status(device->dcd);
return RT_EOK;
}
......@@ -1318,4 +1318,3 @@ rt_err_t rt_usbd_core_init(void)
return RT_EOK;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册