You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
bhass1
added a commit
to bhass1/pyftdi
that referenced
this issue
Apr 19, 2024
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.
The text was updated successfully, but these errors were encountered: