From 8b5ed619c0352e03b77a917e8b8f7de39298f1f7 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Sat, 16 Jun 2007 14:02:23 +0000 Subject: [PATCH] ported r4446 from trunk git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4451 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/py-smbus/smbusmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/py-smbus/smbusmodule.c b/prog/py-smbus/smbusmodule.c index f0ca53c5..afc54a41 100644 --- a/prog/py-smbus/smbusmodule.c +++ b/prog/py-smbus/smbusmodule.c @@ -513,7 +513,7 @@ SMBus_read_i2c_block_data(SMBus *self, PyObject *args) data.block[0] = len; /* save a bit of code by calling the access function directly */ if (i2c_smbus_access(self->fd, I2C_SMBUS_READ, (__u8)cmd, - len = 32 ? I2C_SMBUS_I2C_BLOCK_BROKEN: + len == 32 ? I2C_SMBUS_I2C_BLOCK_BROKEN: I2C_SMBUS_I2C_BLOCK_DATA, &data)) { PyErr_SetFromErrno(PyExc_IOError); return NULL;