Browse Source

i2cset: Abort if value mask is set for block commands

Specifying the value mask is not supported for block commands,
abort if it is specified anyway.



git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5923 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.1.0
Guenter Roeck 15 years ago
parent
commit
7b4639c497
  1. 4
      tools/i2cset.c

4
tools/i2cset.c

@ -223,6 +223,10 @@ int main(int argc, char *argv[])
fprintf(stderr, "Error: PEC not supported for I2C block writes!\n");
help();
}
if (maskp) {
fprintf(stderr, "Error: Mask not supported for block writes!\n");
help();
}
if (argc > (int)sizeof(block) + flags + 5) {
fprintf(stderr, "Error: Too many arguments!\n");
help();

Loading…
Cancel
Save