-
Notifications
You must be signed in to change notification settings - Fork 3
Drop USB interface before reset #13
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
base: main
Are you sure you want to change the base?
Conversation
|
@sjoerdsimons is this PR okay for you? Notable changes:
|
|
I'd rather not include the nix files; I don't use nix, so that'll just go unmaintained.. I don't think crates should have distro specific configuration in them as that's a very slippery slope. As it stands this commit still makes dfu-nusb use a forked dfu-core, so that should be dropped before merging. Also should do a semver bump as the api is changed. The code i'd need to further review (as always end of the year is hectic, so i'm slow).. But from a quick look the change to the |
|
@cecton btw just quickly looking at dfu-core ; looks like 0.9.2 is a semver break (changing the type of arguments); That should have been 0.10 instead |
|
Totally understand wrt to the nix devshell. I always meant to remove them before PR-ing. I'll fixup the commit and re-push.
Oh, yeah! Totally. I'll wait for a new
I figured a maintainer would do that before issuing a new release? |
Sure, I'll be happy to make that change to |
This reverts commit 5ea7a4d.
|
@sjoerdsimons making So, honestly, I think the way this PR does it is just OK. I could move the interface-unwrapping in a fn to avoid code duplication. |
|
Oops you're right It's yanked and I released 0.10. |
Ah yes that was the issue. Using a state machine has its limitations. The IO object must stay alive. |
|
Seems all good to me. Only waiting on @sjoerdsimons feedback 😇 |
This is required on (at least) macOS, as the
usb_resetmethod will fail while there are interfaces claimed.This should fix #6
Relies on dfu-rs/dfu-core#31