mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-08 16:11:26 +00:00
Fixed Block Write for I2C bus SMBus emulation (thanks to Louis Lambert)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@396 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
db7cba03ca
commit
661356ae44
1 file changed
+1
-1
+1
-1
@@ -157,7 +157,7 @@ s32 smbus_access_i2c(struct i2c_adapter * adapter, u8 addr, char read_write,
|
||||
return -1;
|
||||
}
|
||||
for (i = 1; i <= msg[1].len; i++)
|
||||
msgbuf0[i] = data->block[1];
|
||||
msgbuf0[i] = data->block[i];
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user