Save backlight levels per battery / power

This commit is contained in:
Serge
2023-06-02 12:57:09 +02:00
parent b97a06eb56
commit 4f6db4ae0a
5 changed files with 143 additions and 136 deletions

View File

@@ -249,7 +249,7 @@ namespace GHelper
}
public static void ApplyBrightness(int brightness)
public static void ApplyBrightness(int brightness, string log = "Backlight")
{
if (AppConfig.ContainsModel("TUF"))
@@ -266,7 +266,7 @@ namespace GHelper
{
device.OpenDevice();
device.WriteFeatureData(msg);
Logger.WriteLine("KB Backlight:" + BitConverter.ToString(msg));
Logger.WriteLine(log + ":" + BitConverter.ToString(msg));
device.CloseDevice();
}