Skip to content

Commit 3dfca6a

Browse files
Revert "drivers: sensor: ina219: remove redundant error check"
This reverts commit dcf546e.
1 parent dcf546e commit 3dfca6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/sensor/ti/ina219/ina219.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ static int ina219_init(const struct device *dev)
269269
}
270270

271271
/* Set measurement delay */
272-
ina219_set_msr_delay(dev);
272+
rc = ina219_set_msr_delay(dev);
273+
if (rc) {
274+
LOG_ERR("Could not get measurement delay.");
275+
return rc;
276+
}
273277

274278
k_sleep(K_USEC(INA219_WAIT_STARTUP));
275279

0 commit comments

Comments
 (0)