Skip to content

Commit

Permalink
Revert "drivers: sensor: ina219: remove redundant error check"
Browse files Browse the repository at this point in the history
This reverts commit dcf546e.
  • Loading branch information
Tarangraval21 committed Nov 10, 2024
1 parent dcf546e commit 3dfca6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/sensor/ti/ina219/ina219.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 3dfca6a

Please sign in to comment.