drivers/power/bq2425x.c: fix build error with baterr()

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen 2020-12-07 15:03:42 +02:00 committed by Alin Jerpelea
parent 979a5b7fd4
commit b2110fc09a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}