mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Fix for turkish keyboard, tweak for default fan curves
This commit is contained in:
11
app/Fans.cs
11
app/Fans.cs
@@ -462,11 +462,16 @@ namespace GHelper
|
||||
int mode = Program.config.getConfig("performance_mode");
|
||||
byte[] curve = Program.config.getFanConfig(device);
|
||||
|
||||
if (def == 1 || curve.Length != 16)
|
||||
if (def == 1 || ASUSWmi.IsEmptyCurve(curve))
|
||||
{
|
||||
curve = Program.wmi.GetFanCurve(device, mode);
|
||||
|
||||
if (ASUSWmi.IsEmptyCurve(curve))
|
||||
curve = Program.config.getDefaultCurve(device);
|
||||
|
||||
if (curve.Length != 16 || curve.All(singleByte => singleByte == 0))
|
||||
curve = Program.config.getDefaultCurve(device);
|
||||
curve = ASUSWmi.FixFanCurve(curve);
|
||||
|
||||
}
|
||||
|
||||
//Debug.WriteLine(BitConverter.ToString(curve));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user