summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/i2c_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/i2c_bus.c b/src/device/i2c_bus.c
index bccd9a8c97..8368c247b8 100644
--- a/src/device/i2c_bus.c
+++ b/src/device/i2c_bus.c
@@ -9,7 +9,7 @@
bool i2c_dev_detect(struct device *dev, unsigned int addr)
{
struct i2c_msg seg = { .flags = 0, .slave = addr, .buf = NULL, .len = 0 };
- return dev->ops->ops_i2c_bus->transfer(dev, &seg, 0) == 0;
+ return dev->ops->ops_i2c_bus->transfer(dev, &seg, 1) == 0;
}
struct bus *i2c_link(const struct device *const dev)