Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25f2444 commit cf695e5Copy full SHA for cf695e5
1 file changed
DeviceFanPluginControlSensor.cs
@@ -27,9 +27,13 @@ public void Reset()
27
28
public void Set(float val)
29
{
30
- var rounded = (int)Math.Round(val);
31
- _fan.SetFlatFanSpeedTable(rounded);
32
- Value = rounded;
+ var roundedVal = (int)Math.Round(val);
+
+ if (roundedVal == Value)
33
+ return;
34
35
+ _fan.SetFlatFanSpeedTable(roundedVal);
36
+ Value = roundedVal;
37
}
38
39
public void Update()
0 commit comments