From 9f157d323ef6d36465fd01b7a333df8e68c55da1 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 19 Sep 2024 23:16:37 +0200 Subject: [PATCH] Battery charge limiter UI fix https://github.com/seerge/g-helper/issues/3138 --- app/Battery/BatteryControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Battery/BatteryControl.cs b/app/Battery/BatteryControl.cs index f3a5079d..152d821e 100644 --- a/app/Battery/BatteryControl.cs +++ b/app/Battery/BatteryControl.cs @@ -39,8 +39,8 @@ public static void SetBatteryChargeLimit(int limit = -1) if (AppConfig.IsChargeLimit6080()) { if (limit > 85) limit = 100; + else if (limit >= 80) limit = 80; else if (limit < 60) limit = 60; - else limit = 80; } Program.acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "BatteryLimit");