← Commit list

1fe75b8ef

Bartosz Golaszewski
Bartosz Golaszewski
2015-11-01
SUCCESS Duration: 273s

Subject

i2cdump: use I2C block mode for the 'i' mode parameter

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/i2c_tools.c+1 -1
@@ -723,7 +723,7 @@ static int read_block_data(int buf_fd, int mode, int *block)
uint8_t cblock[I2C_SMBUS_BLOCK_MAX + I2CDUMP_NUM_REGS];
int res, blen = 0, tmp, i;
- if (mode == I2C_SMBUS_BLOCK_DATA || mode == I2C_SMBUS_I2C_BLOCK_DATA) {
+ if (mode == I2C_SMBUS_BLOCK_DATA) {
res = i2c_smbus_read_block_data(buf_fd, 0, cblock);
blen = res;
} else {