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

Added function to libusb interface that allows addressing of devices … #288

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

maxdos64
Copy link

@maxdos64 maxdos64 commented Jun 4, 2020

…via their

direct device id (result of `lsusb`)

Signed-off-by: Maximilian von Tschirschnitz [email protected]

@mringwal
Copy link
Member

mringwal commented Jun 4, 2020

Thanks. How is the dev_addr variable set?

maxdos64 and others added 4 commits June 4, 2020 12:18
…via their

    direct device id (result of `lsusb`)

Signed-off-by: Maximilian von Tschirschnitz <[email protected]>
This reverts commit 482618c.

Moved to a new branch
now its complete

Signed-off-by: Maximilian von Tschirschnitz <[email protected]>
@mringwal
Copy link
Member

Hi. Could you try to extend the existing first if clause 'if (usb_path_len)' with 'if ((usb_path_len != 0) || ( dev_addr != 0) and then check if either usb path or device address matches? (It's better to avoid copy & paste code in the beginning than to try later to get rid of it...).

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.

3 participants