eblot / pyftdi

FTDI device driver written in pure Python
Other
509 stars 212 forks source link

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

Open renmarq opened 1 year ago

renmarq commented 1 year ago

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.