refactor: use one max_percent instead of two seperate values, to allow quicker changing

This commit is contained in:
buffet 2024-04-17 11:08:49 +02:00
parent 326c49f6bc
commit cefd39de8e

View file

@ -4,8 +4,10 @@ _: {
enable = true;
settings = let
start_charge = 40;
stop_charge = 60;
max_percent = 60;
start_charge = 100 - max_percent;
stop_charge = max_percent;
in {
START_CHARGE_THRESH_BAT0 = start_charge;
STOP_CHARGE_THRESH_BAT0 = stop_charge;