diff --git a/samples/drivers/i2c_scanner/src/main.c b/samples/drivers/i2c_scanner/src/main.c index 68c6740ee3f17..8b0f92dcaf92c 100644 --- a/samples/drivers/i2c_scanner/src/main.c +++ b/samples/drivers/i2c_scanner/src/main.c @@ -38,7 +38,7 @@ void main(void) /* Send the address to read from */ msgs[0].buf = &dst; - msgs[0].len = 0U; + msgs[0].len = 1U; msgs[0].flags = I2C_MSG_WRITE | I2C_MSG_STOP; if (i2c_transfer(i2c_dev, &msgs[0], 1, i) == 0) {