mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +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:
1 parent
d9927a5a5e
commit
40a778e313
1 file changed
+4
-4
+4
-4
@@ -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