From 40a778e313c19a8cb27c5c7d76f2b90ea13d080a Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 30 Sep 2005 17:25:38 +0000 Subject: [PATCH] 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 --- prog/dump/i2cdump.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prog/dump/i2cdump.c b/prog/dump/i2cdump.c index 590235db..01ff051f 100644 --- a/prog/dump/i2cdump.c +++ b/prog/dump/i2cdump.c @@ -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); }