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

tinyusb/msc_fat_view: Fix directory population condition #3123

Merged

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Dec 21, 2023

Condition to populate disk presented over USB checked if last SCSI command was TEST_UNIT_READY.
This only worked if TEST_UNIT_READY was send twice one after the other. It seems to work on Linux but for Windows it did not happen very often.

Now disk data is populated (init_disk_data()) on first TEST_UNIT_READY request when medium state is set to MEDIUM_REALOAD.

Condition to populate disk presented over USB checked if last SCSI command
was TEST_UNIT_READY.
This only worked if TEST_UNIT_READY was send twice one after the other.
It seems to work on Linux but for Windows it did not happen very often.

Now disk data is populated (init_disk_data()) on first TEST_UNIT_READY request
when medium state is set to MEDIUM_REALOAD.
@kasjer kasjer merged commit ce36f87 into apache:master Jan 4, 2024
15 checks passed
@kasjer kasjer deleted the kasjer/fix-msc_fat_view-directory-population branch January 4, 2024 08:41
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.

2 participants