Hotfix for possible crash

This commit is contained in:
Serge
2023-05-13 09:43:26 +02:00
parent 0b7dd42a5d
commit 1fadc6c31e
3 changed files with 15 additions and 9 deletions

View File

@@ -242,10 +242,8 @@ public class ASUSWmi
int result;
for (int i = 8; i < curve.Length; i++)
{
curve[i] = Math.Max((byte)0, Math.Min((byte)99, curve[i])); // it seems to be a bug, when some old model's bios can go nuts if fan is set to 100%
}
//for (int i = 8; i < curve.Length; i++)
// curve[i] = Math.Max((byte)0, Math.Min((byte)99, curve[i])); // it seems to be a bug, when some old model's bios can go nuts if fan is set to 100%
switch (device)
{