Improve DeadZones

This commit is contained in:
Kamil Trzciński 2022-11-12 16:22:02 +01:00
parent c02f7053f8
commit 8e582f372e
2 changed files with 5 additions and 5 deletions

View file

@ -153,7 +153,7 @@ namespace FanControl
if (!newValue.HasValue || newValue <= 0.0)
return false;
if (AllSamples.Count == 0 || Math.Abs(AllSamples.Last() - newValue.Value) > ValueDeadZone)
if (AllSamples.Count == 0 || Math.Abs(AllSamples.Last() - newValue.Value) >= ValueDeadZone)
{
AllSamples.Add(newValue.Value);
while (AllSamples.Count > AvgSamples)