From 8e9fea3a69291eabac47e4bee10847e0eccbc918 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 9 Jun 2024 12:12:54 +0200 Subject: [PATCH] Charge limit cleanup --- app/AppConfig.cs | 7 +------ app/Battery/BatteryControl.cs | 5 ----- app/GHelper.csproj | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/AppConfig.cs b/app/AppConfig.cs index d6e8d22d1..2f9249c9a 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -630,14 +630,9 @@ public static bool IsStopAC() return IsAlly() || Is("stop_ac"); } - public static bool IsChargeLimit80() - { - return ContainsModel("GA403UI"); - } - public static bool IsChargeLimit6080() { - return ContainsModel("GA403UU") || ContainsModel("GA403UV") || ContainsModel("GU605") || ContainsModel("GA503R") || (IsTUF() && !(ContainsModel("FX507Z") || ContainsModel("FA617"))); + return ContainsModel("GA403U") || ContainsModel("GU605") || ContainsModel("GA503R") || (IsTUF() && !(ContainsModel("FX507Z") || ContainsModel("FA617"))); } diff --git a/app/Battery/BatteryControl.cs b/app/Battery/BatteryControl.cs index 619479e66..b15498dee 100644 --- a/app/Battery/BatteryControl.cs +++ b/app/Battery/BatteryControl.cs @@ -36,11 +36,6 @@ public static void SetBatteryChargeLimit(int limit = -1) if (limit < 0) limit = AppConfig.Get("charge_limit"); if (limit < 40 || limit > 100) return; - if (AppConfig.IsChargeLimit80()) - { - limit = (limit <= 80) ? 80 : 100; - } - if (AppConfig.IsChargeLimit6080()) { if (limit > 80) limit = 100; diff --git a/app/GHelper.csproj b/app/GHelper.csproj index 174e11885..3e1c23842 100644 --- a/app/GHelper.csproj +++ b/app/GHelper.csproj @@ -15,7 +15,7 @@ AnyCPU False True - 0.175 + 0.176