Skip to content

Commit 80fbee2

Browse files
committed
Cleanup
1 parent e1c83da commit 80fbee2

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

app/AppConfig.cs

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -302,27 +302,32 @@ public static byte[] GetDefaultCurve(AsusFan device)
302302

303303
switch (mode)
304304
{
305-
case 1:
306-
if (device == AsusFan.GPU)
307-
curve = StringToBytes("14-3F-44-48-4C-50-54-62-16-1F-26-2D-39-47-55-5F");
308-
else
309-
curve = StringToBytes("14-3F-44-48-4C-50-54-62-11-1A-22-29-34-43-51-5A");
310-
break;
311-
case 2:
312-
if (device == AsusFan.GPU)
313-
curve = StringToBytes("3C-41-42-46-47-4B-4C-62-08-11-11-1D-1D-26-26-2D");
314-
else
315-
curve = StringToBytes("3C-41-42-46-47-4B-4C-62-03-0C-0C-16-16-22-22-29");
316-
break;
305+
case AsusACPI.PerformanceTurbo:
306+
switch (device)
307+
{
308+
case AsusFan.GPU:
309+
return StringToBytes("14-3F-44-48-4C-50-54-62-16-1F-26-2D-39-47-55-5F");
310+
default:
311+
return StringToBytes("14-3F-44-48-4C-50-54-62-11-1A-22-29-34-43-51-5A");
312+
}
313+
case AsusACPI.PerformanceSilent:
314+
switch (device)
315+
{
316+
case AsusFan.GPU:
317+
return StringToBytes("3C-41-42-46-47-4B-4C-62-08-11-11-1D-1D-26-26-2D");
318+
default:
319+
return StringToBytes("3C-41-42-46-47-4B-4C-62-03-0C-0C-16-16-22-22-29");
320+
}
317321
default:
318-
if (device == AsusFan.GPU)
319-
curve = StringToBytes("3A-3D-40-44-48-4D-51-62-0C-16-1D-1F-26-2D-34-4A");
320-
else
321-
curve = StringToBytes("3A-3D-40-44-48-4D-51-62-08-11-16-1A-22-29-30-45");
322-
break;
322+
switch (device)
323+
{
324+
case AsusFan.GPU:
325+
return StringToBytes("3A-3D-40-44-48-4D-51-62-0C-16-1D-1F-26-2D-34-4A");
326+
default:
327+
return StringToBytes("3A-3D-40-44-48-4D-51-62-08-11-16-1A-22-29-30-45");
328+
}
323329
}
324330

325-
return curve;
326331
}
327332

328333
public static string GetModeString(string name)

0 commit comments

Comments
 (0)