System Startup charge limiter

This commit is contained in:
Serge
2024-09-09 13:01:34 +02:00
parent cf94973419
commit 2833373f9e
2 changed files with 3 additions and 1 deletions

View File

@@ -127,6 +127,8 @@ public class Startup
else else
ProcessHelper.RunAsAdmin(); ProcessHelper.RunAsAdmin();
} }
Logger.WriteLine("Startup task scheduled: " + strExeFilePath);
} }
ScheduleCharge(); ScheduleCharge();

View File

@@ -343,7 +343,7 @@ namespace GHelper
int limit = 80; int limit = 80;
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(true);
acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit"); acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit");
} }