pyftdi icon indicating copy to clipboard operation
pyftdi copied to clipboard

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

Open renmarq opened this issue 1 year ago • 0 comments

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.

renmarq avatar Oct 07 '23 09:10 renmarq