diff --git a/commands/i2c.c b/commands/i2c.c index e3d79b0..d6c5412 100644 --- a/commands/i2c.c +++ b/commands/i2c.c @@ -114,8 +114,12 @@ *(buf + i) = (char) simple_strtol(argv[optind+i], NULL, 16); ret = i2c_write_reg(&client, reg | wide, buf, count); - if (ret != count) + if (ret != count) { + if (verbose) + printf("write aborted, count(%i) != writestatus(%i)\n", + count, ret); goto out; + } ret = 0; if (verbose) {