This commit is contained in:
Serge
2023-08-08 17:15:57 +02:00
parent 48674dcf90
commit 1827450f4b
3 changed files with 22 additions and 5 deletions

View File

@@ -300,7 +300,7 @@ public static class AppConfig
public static bool NoAuraColor()
{
return ContainsModel("GA401") || ContainsModel("X13") || ContainsModel("GA503RM");
return ContainsModel("GA401") || ContainsModel("X13");
}
public static bool IsStrix()
@@ -318,6 +318,12 @@ public static class AppConfig
return ContainsModel("X16") || ContainsModel("X13");
}
public static bool IsX13()
{
return ContainsModel("X13");
}
public static bool IsAdvantageEdition()
{
return ContainsModel("13QY");

View File

@@ -109,12 +109,13 @@ public class AsusACPI
public const int GPUModeStandard = 1;
public const int GPUModeUltimate = 2;
public static int MaxTotal => AppConfig.IsAdvantageEdition() ? 250 : 150;
public const int MinTotal = 5;
public const int DefaultTotal = 125;
public const int MaxCPU = 100;
public static int MaxTotal = 150;
public static int DefaultTotal = 125;
public const int MinCPU = 5;
public const int MaxCPU = 100;
public const int DefaultCPU = 80;
public const int MinGPUBoost = 5;
@@ -212,6 +213,14 @@ public class AsusACPI
throw new Exception("Can't connect to ACPI");
}
if (AppConfig.IsAdvantageEdition()) MaxTotal = 250;
if (AppConfig.IsX13())
{
MaxTotal = 75;
DefaultTotal = 50;
}
}
public void Control(uint dwIoControlCode, byte[] lpInBuffer, byte[] lpOutBuffer)

View File

@@ -63,6 +63,8 @@ namespace GHelper
static bool isTuf = AppConfig.IsTUF();
static bool isStrix = AppConfig.IsStrix();
static bool isOldHeatmap = AppConfig.Is("old_heatmap");
static System.Timers.Timer timer = new System.Timers.Timer(2000);
static HidDevice? auraDevice = null;
@@ -464,7 +466,7 @@ namespace GHelper
if (auraDevice is null || !auraDevice.IsConnected) GetAuraDevice();
if (auraDevice is null || !auraDevice.IsConnected) return;
if (isStrix)
if (isStrix && !isOldHeatmap)
{
byte[] msg = new byte[0x40];