Rename function and simplifying how SOC method is toggled.

This commit is contained in:
freddanastrom 2025-06-07 20:48:13 +02:00
parent de8f5af057
commit 4e00dbb86c
5 changed files with 9 additions and 19 deletions

View file

@ -56,11 +56,11 @@ std::vector<BatteryCommand> battery_commands = {
[](Battery* b) {
b->reset_SOH();
}},
{"changeSOC", "Change SOC method",
"change SOC method? This will toggle between ESTIMATED and MEASURED SOC methods.",
[](Battery* b) { return b && b->supports_change_SOC_method(); },
{"toggleSOC", "Toggle SOC method",
"toggle SOC method? This will toggle between ESTIMATED and MEASURED SOC methods.",
[](Battery* b) { return b && b->supports_toggle_SOC_method(); },
[](Battery* b) {
b->change_SOC_method();
b->toggle_SOC_method();
}},
};