pyftdi
pyftdi copied to clipboard
Specification issue in I2cController.exchange(self, out, readlen, relax, start)
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.