mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 13:57:41 +00:00
Continuous byte mode needs not only read byte capability but also
write byte capability. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3110 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
parent
d9927a5a5e
commit
40a778e313
@ -184,16 +184,16 @@ int main(int argc, char *argv[])
|
||||
switch(size) {
|
||||
case I2C_SMBUS_BYTE:
|
||||
if (pec) {
|
||||
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE_PEC)) {
|
||||
if (!(funcs & I2C_FUNC_SMBUS_BYTE_PEC)) {
|
||||
fprintf(stderr, "Error: Adapter for i2c bus "
|
||||
"%d does not have read w/ PEC "
|
||||
"%d does not have byte w/ PEC "
|
||||
"capability\n", i2cbus);
|
||||
exit(1);
|
||||
}
|
||||
} else {
|
||||
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
|
||||
if (!(funcs & I2C_FUNC_SMBUS_BYTE)) {
|
||||
fprintf(stderr, "Error: Adapter for i2c bus "
|
||||
"%d does not have read capability\n",
|
||||
"%d does not have byte capability\n",
|
||||
i2cbus);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user