Skip to content

Improve USB eject by resetting on replug #2406

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

Merged
merged 1 commit into from
Dec 18, 2019

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Dec 18, 2019

This seems to fix the issue where leaving a CIRCUITPY drive plugged in leads to a crash.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good to me, but @hathach will have the last word.

I would note that Windows doesn't seem to have any easy way to actually eject. "Eject" doesn't dismount, but it does do all pending writes and mark the drive as "clean".

Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great changes, msc mount/umount together with enumeration make perfect sense

@dhalbert dhalbert merged commit f2b1aee into adafruit:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants