mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +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:
@@ -184,16 +184,16 @@ int main(int argc, char *argv[])
|
|||||||
switch(size) {
|
switch(size) {
|
||||||
case I2C_SMBUS_BYTE:
|
case I2C_SMBUS_BYTE:
|
||||||
if (pec) {
|
if (pec) {
|
||||||
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE_PEC)) {
|
if (!(funcs & I2C_FUNC_SMBUS_BYTE_PEC)) {
|
||||||
fprintf(stderr, "Error: Adapter for i2c bus "
|
fprintf(stderr, "Error: Adapter for i2c bus "
|
||||||
"%d does not have read w/ PEC "
|
"%d does not have byte w/ PEC "
|
||||||
"capability\n", i2cbus);
|
"capability\n", i2cbus);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
|
if (!(funcs & I2C_FUNC_SMBUS_BYTE)) {
|
||||||
fprintf(stderr, "Error: Adapter for i2c bus "
|
fprintf(stderr, "Error: Adapter for i2c bus "
|
||||||
"%d does not have read capability\n",
|
"%d does not have byte capability\n",
|
||||||
i2cbus);
|
i2cbus);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user