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

Specification issue in I2cController.exchange(self, out, readlen, relax, start) #359

Open
renmarq opened this issue Oct 7, 2023 · 0 comments

Comments

@renmarq
Copy link

renmarq commented Oct 7, 2023

Hi,

The documentation + specification of this function says that readlen can be 0 (and it's the default value) but the function raises an exception on readlen = 0:
if readlen < 1: raise I2cIOError('Nothing to read')
Although it clearly supports zero value:
if readlen: data = self._do_read(readlen)

Thanks.

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

No branches or pull requests

1 participant