Skip to content

Commit ffd9bf6

Browse files
committed
Cleanup
1 parent 80f6191 commit ffd9bf6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/AsusACPI.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public bool IsConnected()
254254
return _connected;
255255
}
256256

257-
public AsusACPI(bool light = false)
257+
public AsusACPI()
258258
{
259259
try
260260
{
@@ -278,8 +278,6 @@ public AsusACPI(bool light = false)
278278
Logger.WriteLine($"Can't connect to ACPI: {ex.Message}");
279279
}
280280

281-
if (light) return;
282-
283281
if (AppConfig.IsAdvantageEdition())
284282
{
285283
MaxTotal = 250;

app/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,11 @@ static void BatteryLimit()
340340
{
341341
try
342342
{
343-
int limit = 80;
343+
int limit = AppConfig.Get("charge_limit");
344344
if (limit > 0 && limit < 100)
345345
{
346346
Logger.WriteLine($"------- Startup Battery Limit {limit} -------");
347-
acpi = new AsusACPI(true);
347+
acpi = new AsusACPI();
348348
acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit");
349349
}
350350
}

0 commit comments

Comments
 (0)