Skip to content

Commit

Permalink
Charge limit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Jun 9, 2024
1 parent 89951e1 commit 8e9fea3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions app/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")));

}

Expand Down
5 changes: 0 additions & 5 deletions app/Battery/BatteryControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/GHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.175</AssemblyVersion>
<AssemblyVersion>0.176</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit 8e9fea3

Please sign in to comment.