mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
Fix silly bug, noticed by Jean.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4446 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c1e0dc4ee1
commit
2327a8a443
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user