drivers/power/bq2425x.c: fix build error with baterr()
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
parent
979a5b7fd4
commit
b2110fc09a
|
@ -638,11 +638,11 @@ static inline int bq2425x_setcurr(FAR struct bq2425x_dev_s *priv,
|
|||
int idx;
|
||||
int ret;
|
||||
|
||||
/* Verify if voltage is in the acceptable range */
|
||||
/* Verify if current is in the acceptable range */
|
||||
|
||||
if (current < BQ2425X_CURR_MIN || current > BQ2425X_CURR_MAX)
|
||||
{
|
||||
baterr("ERROR: Current %d mA is out of range.\n", volts);
|
||||
baterr("ERROR: Current %d mA is out of range.\n", current);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue