Skip to content

tinyusb/msc_fat_view: Small fixes #3434

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Jun 16, 2025

Short name generation incorrectly build file extension.
For config.txt it would create

'CONFIG .TX' instead of 'CONFIG TXT'
(Extra dot that should not be there)

Now short name is displayed correctly
Additionally typo in variable name is corrected.

Root directory sector count is not increased to 3
and configurable in syscfg.
This can prevent case when due to number of entries
in root directory host system can't write file with
updated firmware.

Short name generation incorrectly build file extension.
For config.txt it would create

'CONFIG  .TX' instead of 'CONFIG  TXT'
(Extra dot that should not be there)

Now short name is displayed correctly
Additionally typo in variable name is corrected.

Signed-off-by: Jerzy Kasenberg <[email protected]>
@github-actions github-actions bot added USB All USB work should have this label size/m labels Jun 16, 2025
@kasjer kasjer force-pushed the kasjer/msc_fat_view-root-sector-count branch from 375c892 to 87ca41c Compare June 16, 2025 14:33
One sector for root dir entry was hardcoded.
It could be to small if additional entries were added.
In that case firmware update could be impossible
if Windows of Linux could not fit new file name
in root directory.

Now root director sector count is configurable
in syscfg.yml by MSC_FAT_VIEW_ROOT_DIR_SECTORS

Signed-off-by: Jerzy Kasenberg <[email protected]>
@kasjer kasjer force-pushed the kasjer/msc_fat_view-root-sector-count branch from 87ca41c to 1f91c79 Compare June 16, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/m USB All USB work should have this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant