Git Product home page Git Product logo

Comments (6)

utzig avatar utzig commented on June 24, 2024

Just booted a Linux machine here for testing this. Got the following:

Unable to open USB device: LIBUSB_ERROR_ACCESS
Unable to find any ICDI devices

Seems correct to me. I'm running ArchLinux. Which distro are you using?

from lm4tools.

utzig avatar utzig commented on June 24, 2024

Ops... sorry... wrong app!

from lm4tools.

utzig avatar utzig commented on June 24, 2024

Should be fixed now.

from lm4tools.

ksyz avatar ksyz commented on June 24, 2024

That will do. Probably better, if you inform user, why it failed (rc = -3 doesnt say that much) via perror().

from lm4tools.

utzig avatar utzig commented on June 24, 2024

The error is thrown by libusb_open(). A quick look at the docs din't mention it setting errno at all. So unless I either test it and confirm it or look at the libusb code there's no obvious way of knowing if it sets errno at all.

from lm4tools.

ksyz avatar ksyz commented on June 24, 2024

You are right, looking at the code, libusb_open() doesn't set errno. The simplest way I can think of is use non-zero return value (one of LIBUSB_ERROR*) and libusb_error_name.

from lm4tools.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.