Skip to content

Commit

Permalink
Update LHM library
Browse files Browse the repository at this point in the history
  • Loading branch information
lich426 committed Dec 23, 2023
1 parent fed2934 commit 5fe98f2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion FanCtrl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<PublisherName>Lich</PublisherName>
<SuiteName>FanCtrl</SuiteName>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.6.6.0</ApplicationVersion>
<ApplicationVersion>1.6.7.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
Expand Down
6 changes: 3 additions & 3 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
//
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
[assembly: AssemblyVersion("1.6.6")]
[assembly: AssemblyFileVersion("1.6.6")]
[assembly: AssemblyInformationalVersion("1.6.6")]
[assembly: AssemblyVersion("1.6.7")]
[assembly: AssemblyFileVersion("1.6.7")]
[assembly: AssemblyInformationalVersion("1.6.7")]
Binary file modified dll/LibreHardwareMonitorLib.dll
Binary file not shown.
10 changes: 5 additions & 5 deletions src/libs/Data/Control/FanData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public int getValue(int temperature, ref bool isAuto)
LastChangedTemp = 0;
LastChangedValue = 0;
LastChangedTempForAuto = 0;
Console.WriteLine("FanData.getValue() : {0}, {1}", LastChangedTemp, LastChangedValue);
//Console.WriteLine("FanData.getValue() : {0}, {1}", LastChangedTemp, LastChangedValue);
return 0;
}

Expand All @@ -205,15 +205,15 @@ public int getValue(int temperature, ref bool isAuto)
if (LastChangedTempForAuto > 0 && LastChangedTempForAuto - temperature <= Hysteresis)
{
isAuto = false;
Console.WriteLine("FanData.getValue() : 1({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
//Console.WriteLine("FanData.getValue() : 1({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
return LastChangedValue;
}
}

LastChangedTemp = 0;
LastChangedValue = 0;
LastChangedTempForAuto = 0;
Console.WriteLine("FanData.getValue() : 2({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
//Console.WriteLine("FanData.getValue() : 2({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
return 0;
}

Expand All @@ -222,7 +222,7 @@ public int getValue(int temperature, ref bool isAuto)
LastChangedTemp = 100;
LastChangedValue = mValueList[this.getMaxFanValue() - 1];
LastChangedTempForAuto = 100;
Console.WriteLine("FanData.getValue() : 3({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
//Console.WriteLine("FanData.getValue() : 3({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
return mValueList[this.getMaxFanValue() - 1];
}

Expand All @@ -244,7 +244,7 @@ public int getValue(int temperature, ref bool isAuto)
LastChangedTemp = minIndex * (int)this.getDivideValue();
LastChangedTempForAuto = nextIndex * (int)this.getDivideValue();
}
Console.WriteLine("FanData.getValue() : 4({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
//Console.WriteLine("FanData.getValue() : 4({0}, {1}, {2})", LastChangedTempForAuto, LastChangedTemp, LastChangedValue);
return LastChangedValue;
}

Expand Down
4 changes: 2 additions & 2 deletions src/libs/Hardware/HardwareManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ private void onUpdateTimer(object sender, EventArgs e)
// remove auto mode control
mAutoControlDictionary.Remove(control.ID);

Console.WriteLine("manual mode : name({0}), value({1}), nextvalue({2})", control.Name, control.Value, control.NextValue);
//Console.WriteLine("manual mode : name({0}), value({1}), nextvalue({2})", control.Name, control.Value, control.NextValue);

if (control.Value == control.NextValue)
{
Expand All @@ -1238,7 +1238,7 @@ private void onUpdateTimer(object sender, EventArgs e)
foreach (var keyPair in mAutoControlDictionary)
{
var control = keyPair.Value;
Console.WriteLine("auto mode : name({0})", control.Name);
//Console.WriteLine("auto mode : name({0})", control.Name);
control.stopTimer();
control.setAuto();
}
Expand Down

0 comments on commit 5fe98f2

Please sign in to comment.