From f1286af4b7067e6c8513c522bd34086cac1bd5e0 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 25 Apr 2024 21:04:42 +0200 Subject: [PATCH] UI Fix https://github.com/seerge/g-helper/issues/2492 --- app/Mode/ModeControl.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Mode/ModeControl.cs b/app/Mode/ModeControl.cs index 92c74954..858a6dc2 100644 --- a/app/Mode/ModeControl.cs +++ b/app/Mode/ModeControl.cs @@ -285,6 +285,7 @@ namespace GHelper.Mode { bool allAMD = Program.acpi.IsAllAmdPPT(); + bool isAMD = RyzenControl.IsAMD(); int limit_total = AppConfig.GetMode("limit_total"); int limit_cpu = AppConfig.GetMode("limit_cpu"); @@ -312,7 +313,7 @@ namespace GHelper.Mode Program.acpi.DeviceSet(AsusACPI.PPT_APUA0, limit_slow, "PowerLimit A0"); customPower = limit_total; } - else if (RyzenControl.IsAMD()) + else if (isAMD) { if (ProcessHelper.IsUserAdministrator()) @@ -331,10 +332,9 @@ namespace GHelper.Mode Program.acpi.DeviceSet(AsusACPI.PPT_CPUB0, limit_cpu, "PowerLimit B0"); customPower = limit_cpu; } - else if (Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0) // FPPT boost for non all-amd models + else if (isAMD && Program.acpi.DeviceGet(AsusACPI.PPT_APUC1) >= 0) // FPPT boost for non all-amd models { Program.acpi.DeviceSet(AsusACPI.PPT_APUC1, limit_fast, "PowerLimit C1"); - customPower = limit_fast; }