This commit is contained in:
Serge
2023-05-09 17:16:10 +02:00
parent 432508cfc5
commit 56ea434626
2 changed files with 5 additions and 5 deletions

View File

@@ -194,7 +194,7 @@ namespace GHelper
{
byte[] msg = { 0x5d, 0xba, 0xc5, 0xc4, (byte)brightness };
var devices = GetHidDevices(new int[] { 0x19b6 });
var devices = GetHidDevices(deviceIds);
if (devices.Count() > 0) Logger.WriteLine("USB-KB = " + BitConverter.ToString(msg));
foreach (HidDevice device in devices)
@@ -215,7 +215,7 @@ namespace GHelper
byte[] msg = AuraDev19b6Extensions.ToBytes(flags.ToArray());
var devices = GetHidDevices(new int[] { 0x19b6 });
var devices = GetHidDevices(deviceIds);
if (devices.Count() > 0) Logger.WriteLine("USB-KB = " + BitConverter.ToString(msg));
foreach (HidDevice device in devices)

View File

@@ -1045,7 +1045,7 @@ namespace GHelper
}
public void SetGPUSettings(bool launchAsAdmin = false)
public void SetGPUSettings(bool launchAsAdmin = true)
{
int gpu_boost = Program.config.getConfigPerf("gpu_boost");
@@ -1067,7 +1067,7 @@ namespace GHelper
Program.wmi.DeviceSet(ASUSWmi.PPT_GPUC2, gpu_temp, "PowerLimit C2");
}
if (gpu_core == -1 && gpu_memory == -1) return;
if ((gpu_core > -5 && gpu_core < 5) && (gpu_memory > -5 && gpu_memory < 5)) launchAsAdmin = false;
if (HardwareControl.GpuControl is not null && HardwareControl.GpuControl.IsNvidia)
{
@@ -1079,7 +1079,7 @@ namespace GHelper
}
catch (Exception ex)
{
Debug.WriteLine(ex.ToString());
Logger.WriteLine(ex.ToString());
}
}