8000 shared/supervisor/usb_msc_flash.c: check for valid vfs from get_vfs() by dhalbert · Pull Request #10457 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

shared/supervisor/usb_msc_flash.c: check for valid vfs from get_vfs() #10457

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 1 commit into
base: main
Choose a base branch
from

Conversation

dhalbert
Copy link
Collaborator
@dhalbert dhalbert commented Jul 6, 2025

The SD automount code did not always check for get_vfs() returning NULL when there was no SD card, which caused mysterious results on some boards. On QT Py ESP32-S3, compiled with -Os, 8000 there were issues on Windows. On Feather ESP32-S3, also compiled with -Os, the build simply didn't work.

The bug was fixed by adding a check in tud_msc_capacity_cb(), but checks were added elsewhere for safety as well.

@Sola85: I think this should fix what you saw.

@dhalbert dhalbert requested a review from eightycc July 6, 2025 18:50
@Sola85
Copy link
Sola85 commented Jul 6, 2025

@dhalbert Thanks a lot! Just tried it out in the previously problematic configuration and now CIRCUITPY shows up almost immediately again and is writable.

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.

espressif: CIRCUITPY drive missing in 10.0.0-alpha.6
2 participants
0