Show
Ignore:
Timestamp:
06/16/07 16:02:23 (8 years ago)
Author:
mmh
Message:

ported r4446 from trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/py-smbus/smbusmodule.c

    r4450 r4451  
    514514        /* save a bit of code by calling the access function directly */ 
    515515        if (i2c_smbus_access(self->fd, I2C_SMBUS_READ, (__u8)cmd, 
    516                                 len = 32 ? I2C_SMBUS_I2C_BLOCK_BROKEN: 
     516                                len == 32 ? I2C_SMBUS_I2C_BLOCK_BROKEN: 
    517517                                I2C_SMBUS_I2C_BLOCK_DATA, &data)) { 
    518518                PyErr_SetFromErrno(PyExc_IOError);