-
Notifications
You must be signed in to change notification settings - Fork 175
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
默认的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);
The text was updated successfully, but these errors were encountered: