Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Sep 9, 2024
1 parent 80f6191 commit ffd9bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/AsusACPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public bool IsConnected()
return _connected;
}

public AsusACPI(bool light = false)
public AsusACPI()
{
try
{
Expand All @@ -278,8 +278,6 @@ public AsusACPI(bool light = false)
Logger.WriteLine($"Can't connect to ACPI: {ex.Message}");
}

if (light) return;

if (AppConfig.IsAdvantageEdition())
{
MaxTotal = 250;
Expand Down
4 changes: 2 additions & 2 deletions app/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ static void BatteryLimit()
{
try
{
int limit = 80;
int limit = AppConfig.Get("charge_limit");
if (limit > 0 && limit < 100)
{
Logger.WriteLine($"------- Startup Battery Limit {limit} -------");
acpi = new AsusACPI(true);
acpi = new AsusACPI();
acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit");
}
}
Expand Down

0 comments on commit ffd9bf6

Please sign in to comment.