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

@ -47,7 +47,7 @@ namespace FanControl
HardwareType = HardwareType.Cpu,
SensorName = "Core (Tctl/Tdie)",
SensorType = SensorType.Temperature,
ValueDeadZone = 2.0f,
ValueDeadZone = 0.0f,
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
{
{
@ -71,7 +71,7 @@ namespace FanControl
HardwareType = HardwareType.GpuAmd,
SensorName = "GPU Core",
SensorType = SensorType.Temperature,
ValueDeadZone = 2.0f,
ValueDeadZone = 0.0f,
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
{
{
@ -94,7 +94,7 @@ namespace FanControl
HardwareType = HardwareType.Storage,
SensorName = "Temperature",
SensorType = SensorType.Temperature,
ValueDeadZone = 1.0f,
ValueDeadZone = 0.5f,
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
{
{
@ -119,7 +119,7 @@ namespace FanControl
HardwareType = HardwareType.Battery,
SensorName = "Temperature",
SensorType = SensorType.Temperature,
ValueDeadZone = 1.0f,
ValueDeadZone = 0.0f,
Profiles = new Dictionary<FanMode, FanSensor.Profile>()
{
{

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)