Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认的USB_REQ_SET_INTERFACE响应有误 #20

Open
season-studio opened this issue Aug 3, 2021 · 1 comment
Open

默认的USB_REQ_SET_INTERFACE响应有误 #20

season-studio opened this issue Aug 3, 2021 · 1 comment

Comments

@season-studio
Copy link

默认的USB_REQ_SET_INTERFACE处理中,在最后向主机响应了一个字节的数据:
tusb_control_send(dev, &dev->temp_buffer, 1);
而USB_REQ_SET_INTERFACE的请求报文为01 0b 00 00,最后的长度域为00,就是不需要设备向主机响应数据的。
所以,默认的USB_REQ_SET_INTERFACE处理中,最后的响应应修改为:
tusb_send_status(dev);

@xtoolbox
Copy link
Owner

xtoolbox commented Nov 7, 2021

感谢反馈,已修正。

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

No branches or pull requests

2 participants