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

flexible buffer length checking #4

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

Conversation

mfrederickson
Copy link
Contributor

This is a work around for #3. You can have the buffer length check turned off by passing in required_buffer_length: 0 to the read method like this (otherwise it defaults to 337):

mcr.read timeout: 10000, required_buffer_length: 0

This commit also includes changing from an explicit interrupt_transfer call to using the interrupt_transfer call on the device handle so that we don't have to worry with buffer management.

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.

1 participant