refactor: use one max_percent instead of two seperate values, to allow quicker changing
This commit is contained in:
parent
326c49f6bc
commit
cefd39de8e
1 changed files with 4 additions and 2 deletions
|
@ -4,8 +4,10 @@ _: {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = let
|
settings = let
|
||||||
start_charge = 40;
|
max_percent = 60;
|
||||||
stop_charge = 60;
|
|
||||||
|
start_charge = 100 - max_percent;
|
||||||
|
stop_charge = max_percent;
|
||||||
in {
|
in {
|
||||||
START_CHARGE_THRESH_BAT0 = start_charge;
|
START_CHARGE_THRESH_BAT0 = start_charge;
|
||||||
STOP_CHARGE_THRESH_BAT0 = stop_charge;
|
STOP_CHARGE_THRESH_BAT0 = stop_charge;
|
||||||
|
|
Loading…
Reference in a new issue