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

Host Panic on MacOS #15

Open
hftsai256 opened this issue Mar 14, 2023 · 0 comments
Open

Host Panic on MacOS #15

hftsai256 opened this issue Mar 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hftsai256
Copy link

hftsai256 commented Mar 14, 2023

Example program host would panic on MacOS with LIBUSB_ERROR_NOT_FOUND when hitting USB Billboard Device 2109:8884. An easy workaround is to handle errors from dev.active_config_descriptor() like:

(around src/lib.rs:57)

let cfg = match dev.active_config_descriptor() {
    Ok(cfg) => cfg,
    Err(err) => {
        println!("LibUSB Error: {:?}: {}", dev, err);
        continue;
    }
};

I haven't had a chance to test it thoroughly (by doing some programming on some developing SBCs), but at least I can now list available devices from M1 Macs.

@h7x4 h7x4 added the bug Something isn't working label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants