转载地址:https://blog.youkuaiyun.com/sg656720274/article/details/90703906
打开工具源码注释掉
#if 0
if (mode != MODE_READ && !(funcs & I2C_FUNC_SMBUS_QUICK)) {
fprintf(stderr, "Error: Can't use SMBus Quick Write command "
"on this bus\n");
close(file);
exit(1);
}
if (mode != MODE_QUICK && !(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
fprintf(stderr, "Error: Can't use SMBus Read Byte command "
"on this bus\n");
close(file);
exit(1);
}
#endif
重新编译即可使用i2c工具