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

remove interface argument to Dev.read() call #2

Merged
merged 1 commit into from
Dec 16, 2014

Conversation

JonathonReinhart
Copy link
Contributor

This fixes #1.

The interface argument was removed at some point and is apparently unneeded.

I also specified the timeout argument by name, so this will still work with older versions of pyusb that still have the interface parameter.

I tested this against the latest pyusb on Linux, and the version of pyusb I had installed on windows, which still has the read(self, endpoint, size, interface=None, timeout=None) signature.

The interface argument was removed at some point and is apparently
unneeded.

I also specified the timeout argument by name, so this will still work with
older versions of pyusb that still have the interface parameter.
andrewdodd added a commit that referenced this pull request Dec 16, 2014
Accepting Jonathon's change. The change removes the unneeded "0" argument to the dev.read() call while maintaining backwards compatibility.
@andrewdodd andrewdodd merged commit 89a2aad into andrewdodd:master Dec 16, 2014
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.

Too many arguments to dev.read()
2 participants