mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Cleanup
This commit is contained in:
@@ -254,7 +254,7 @@ public class AsusACPI
|
|||||||
return _connected;
|
return _connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AsusACPI(bool light = false)
|
public AsusACPI()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -278,8 +278,6 @@ public class AsusACPI
|
|||||||
Logger.WriteLine($"Can't connect to ACPI: {ex.Message}");
|
Logger.WriteLine($"Can't connect to ACPI: {ex.Message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (light) return;
|
|
||||||
|
|
||||||
if (AppConfig.IsAdvantageEdition())
|
if (AppConfig.IsAdvantageEdition())
|
||||||
{
|
{
|
||||||
MaxTotal = 250;
|
MaxTotal = 250;
|
||||||
|
|||||||
@@ -340,11 +340,11 @@ namespace GHelper
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int limit = 80;
|
int limit = AppConfig.Get("charge_limit");
|
||||||
if (limit > 0 && limit < 100)
|
if (limit > 0 && limit < 100)
|
||||||
{
|
{
|
||||||
Logger.WriteLine($"------- Startup Battery Limit {limit} -------");
|
Logger.WriteLine($"------- Startup Battery Limit {limit} -------");
|
||||||
acpi = new AsusACPI(true);
|
acpi = new AsusACPI();
|
||||||
acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit");
|
acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user