diff --git a/drivers/sensor/ti/ina219/ina219.c b/drivers/sensor/ti/ina219/ina219.c index 2560d879b8cf16..cebe0dc812a339 100644 --- a/drivers/sensor/ti/ina219/ina219.c +++ b/drivers/sensor/ti/ina219/ina219.c @@ -269,7 +269,11 @@ static int ina219_init(const struct device *dev) } /* Set measurement delay */ - ina219_set_msr_delay(dev); + rc = ina219_set_msr_delay(dev); + if (rc) { + LOG_ERR("Could not get measurement delay."); + return rc; + } k_sleep(K_USEC(INA219_WAIT_STARTUP));