From 80fbee260945688c29c34117f468b3f23d418bf2 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sat, 21 Sep 2024 17:53:10 +0200 Subject: [PATCH] Cleanup --- app/AppConfig.cs | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/app/AppConfig.cs b/app/AppConfig.cs index eca94356..c2899b54 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -302,27 +302,32 @@ public static byte[] GetDefaultCurve(AsusFan device) switch (mode) { - case 1: - if (device == AsusFan.GPU) - curve = StringToBytes("14-3F-44-48-4C-50-54-62-16-1F-26-2D-39-47-55-5F"); - else - curve = StringToBytes("14-3F-44-48-4C-50-54-62-11-1A-22-29-34-43-51-5A"); - break; - case 2: - if (device == AsusFan.GPU) - curve = StringToBytes("3C-41-42-46-47-4B-4C-62-08-11-11-1D-1D-26-26-2D"); - else - curve = StringToBytes("3C-41-42-46-47-4B-4C-62-03-0C-0C-16-16-22-22-29"); - break; + case AsusACPI.PerformanceTurbo: + switch (device) + { + case AsusFan.GPU: + return StringToBytes("14-3F-44-48-4C-50-54-62-16-1F-26-2D-39-47-55-5F"); + default: + return StringToBytes("14-3F-44-48-4C-50-54-62-11-1A-22-29-34-43-51-5A"); + } + case AsusACPI.PerformanceSilent: + switch (device) + { + case AsusFan.GPU: + return StringToBytes("3C-41-42-46-47-4B-4C-62-08-11-11-1D-1D-26-26-2D"); + default: + return StringToBytes("3C-41-42-46-47-4B-4C-62-03-0C-0C-16-16-22-22-29"); + } default: - if (device == AsusFan.GPU) - curve = StringToBytes("3A-3D-40-44-48-4D-51-62-0C-16-1D-1F-26-2D-34-4A"); - else - curve = StringToBytes("3A-3D-40-44-48-4D-51-62-08-11-16-1A-22-29-30-45"); - break; + switch (device) + { + case AsusFan.GPU: + return StringToBytes("3A-3D-40-44-48-4D-51-62-0C-16-1D-1F-26-2D-34-4A"); + default: + return StringToBytes("3A-3D-40-44-48-4D-51-62-08-11-16-1A-22-29-30-45"); + } } - return curve; } public static string GetModeString(string name)