[lm-sensors] svn commit: r4435 - lm-sensors/trunk/prog/py-smbus by mmh
Jean Delvare
khali at linux-fr.org
Sun Jun 10 22:35:35 CEST 2007
On Sat, 9 Jun 2007 18:19:45 +0200 (CEST), lm-sensors-notify at lm-sensors.org wrote:
> Author: mmh
> Date: Sat Jun 9 18:19:37 2007
> New Revision: 4435
> Changeset: http://lm-sensors.org/changeset/4435
>
> Modified:
> lm-sensors/trunk/prog/py-smbus/smbusmodule.c
>
> Log:
> Allow i2c block transfers with of length < 32 on kernels that support it.
> if (i2c_smbus_access(self->fd, I2C_SMBUS_READ, (__u8)cmd,
> + len = 32 ? I2C_SMBUS_I2C_BLOCK_BROKEN:
> I2C_SMBUS_I2C_BLOCK_DATA, &data)) {
This looks wrong to me, should be "len == 32"?
--
Jean Delvare
More information about the lm-sensors
mailing list