fix: usbd_set_interface close unexpected endpoint#258
Closed
CutClassH wants to merge 1 commit intocherry-embedded:masterfrom
Closed
fix: usbd_set_interface close unexpected endpoint#258CutClassH wants to merge 1 commit intocherry-embedded:masterfrom
CutClassH wants to merge 1 commit intocherry-embedded:masterfrom
Conversation
…re more than 2 and used same endpoint.
Contributor
Author
|
没有考虑一个interface alt setting有多个endpoint的情况,暂时关闭 |
Collaborator
|
多个 alt setting的话,使用的ep也是一样的。不过这边循环遍历的话确实会有问题,重复关闭了多次。我的建议是在 reset 中判断,如果已经reset了一次则跳过即可。 |
Contributor
Author
|
sorry,我没有把问题描述清楚。 所以这里是需要修复的。但是我的PR会引入另一个问题,所以我把它关闭了。 |
Collaborator
|
恩我理解你的意思,这个我来改吧 |
Collaborator
|
fixed |
sakumisu
added a commit
that referenced
this pull request
Sep 27, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当一个Interface多个AlternateSetting的时候,比如下面描述符的情况,当设置interface 1, alt setting 1时,会在遍历到alt setting 2时错误地关闭endpoint 2