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

Probable race condition causes enumeration failure. #437

Closed
wants to merge 1 commit into from

Conversation

MrMep
Copy link

@MrMep MrMep commented Jul 7, 2024

setup_count is a uint8_t: we must check that it is > 0 before decrementing it, otherwise it takes a high positive value, the following if condition is true and the setup doesn't take place.

Fixes #426 , amowry/WARBL2#1

setup_count is a uint8_t: we must check that it is > 0 before decrementing it, otherwise it takes a high positive value, the following if condition is true and the setup doesn't take place.
@hathach
Copy link
Member

hathach commented Aug 8, 2024

yeah, thank you, it is already fixed with as part of https://github.com/hathach/tinyusb/pull/2739/files

@hathach hathach closed this Aug 8, 2024
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

Successfully merging this pull request may close these issues.

3.1.3 and 3.1.4 cause delay in enumeration
2 participants