mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Rename function and simplifying how SOC method is toggled.
This commit is contained in:
parent
de8f5af057
commit
4e00dbb86c
5 changed files with 9 additions and 19 deletions
|
@ -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();
|
||||
}},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue