driver: ina2** allow 3 indexes

This commit is contained in:
alexklimaj 2023-11-21 19:48:30 +00:00 committed by Daniel Agar
parent dd2322d622
commit 5f8ecd6b40
5 changed files with 7 additions and 7 deletions

View File

@ -30,7 +30,7 @@ then
if [ $HAVE_PM3 = yes ]
then
ina226 -X -b 3 -t 2 -k start
ina226 -X -b 3 -t 3 -k start
fi
fi
@ -46,7 +46,7 @@ then
if [ $HAVE_PM3 = yes ]
then
ina228 -X -b 3 -t 2 -k start
ina228 -X -b 3 -t 3 -k start
fi
fi
@ -62,7 +62,7 @@ then
if [ $HAVE_PM3 = yes ]
then
ina238 -X -b 3 -t 2 -k start
ina238 -X -b 3 -t 3 -k start
fi
fi

View File

@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x41);
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
PRINT_MODULE_USAGE_PARAM_STRING('T', "VBATT", "VBATT|VREG", "Type", true);
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
}

View File

@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x41);
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
}

View File

@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x45);
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
}

View File

@ -82,7 +82,7 @@ this flag set, the battery must be plugged in before starting the driver.
PRINT_MODULE_USAGE_PARAMS_I2C_SPI_DRIVER(true, false);
PRINT_MODULE_USAGE_PARAMS_I2C_ADDRESS(0x45);
PRINT_MODULE_USAGE_PARAMS_I2C_KEEP_RUNNING_FLAG();
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 2, "battery index for calibration values (1 or 2)", true);
PRINT_MODULE_USAGE_PARAM_INT('t', 1, 1, 3, "battery index for calibration values (1 or 3)", true);
PRINT_MODULE_USAGE_DEFAULT_COMMANDS();
}