mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 14:53:48 +00:00
Improve DeadZones
This commit is contained in:
parent
c02f7053f8
commit
8e582f372e
2 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue