Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: npm2100_fuel_gauge: Add missing shell cmd and strings #21166

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions samples/pmic/native/npm2100_fuel_gauge/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ static bool fuel_gauge_initialized;

static const char *const battery_model_str[] = {[BATTERY_TYPE_ALKALINE_AA] = "Alkaline AA",
[BATTERY_TYPE_ALKALINE_AAA] = "Alkaline AAA",
[BATTERY_TYPE_ALKALINE_2SAA] = "Alkaline 2SAA",
[BATTERY_TYPE_ALKALINE_2SAAA] = "Alkaline 2SAAA",
[BATTERY_TYPE_ALKALINE_LR44] = "Alkaline LR44",
[BATTERY_TYPE_LITHIUM_CR2032] = "Lithium CR2032"};

Expand Down Expand Up @@ -111,6 +113,8 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
subcmd_battery_model,
SHELL_CMD_ARG(Alkaline_AA, NULL, "Alkaline AA battery", cmd_battery_model_set, 1, 0),
SHELL_CMD_ARG(Alkaline_AAA, NULL, "Alkaline AAA battery", cmd_battery_model_set, 1, 0),
SHELL_CMD_ARG(Alkaline_2SAA, NULL, "Alkaline 2SAA battery", cmd_battery_model_set, 1, 0),
SHELL_CMD_ARG(Alkaline_2SAAA, NULL, "Alkaline 2SAAA battery", cmd_battery_model_set, 1, 0),
SHELL_CMD_ARG(Alkaline_LR44, NULL, "Alkaline LR44 battery", cmd_battery_model_set, 1, 0),
SHELL_CMD_ARG(Lithium_CR2032, NULL, "Lithium CR2032 battery", cmd_battery_model_set, 1, 0),
SHELL_SUBCMD_SET_END);
Expand Down