This commit is contained in:
Serge
2024-09-09 13:09:30 +02:00
parent 80f61912f3
commit ffd9bf6673
2 changed files with 3 additions and 5 deletions

View File

@@ -340,11 +340,11 @@ namespace GHelper
{
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");
}
}