Skip to content

Commit eface7d

Browse files
committed
Fix incorrect naming
1 parent 39ca7a9 commit eface7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Plugins/Effects/TTController.Plugin.SensorEffect/SensorEffect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using TTController.Common;
66
using TTController.Common.Plugin;
77

8-
namespace TTController.Plugin.TemperatureEffect
8+
namespace TTController.Plugin.SensorEffect
99
{
1010
public class SensorEffectConfig : EffectConfigBase
1111
{

Source/TTController.Service/TTService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private bool SensorTimerCallback()
239239

240240
private bool DeviceSpeedTimerCallback()
241241
{
242-
var isCriticalTemperature = _sensorManager.EnabledSensors.Any(s => {
242+
var criticalState = _sensorManager.EnabledSensors.Any(s => {
243243
var value = _cache.GetSensorValue(s);
244244
var config = _cache.GetSensorConfig(s);
245245
return !float.IsNaN(value) && config.CriticalValue.HasValue && value > config.CriticalValue;
@@ -258,7 +258,7 @@ private bool DeviceSpeedTimerCallback()
258258
}
259259

260260
IDictionary<PortIdentifier, byte> speedMap;
261-
if (isCriticalTemperature)
261+
if (criticalState)
262262
{
263263
speedMap = profile.Ports.ToDictionary(p => p, _ => (byte)100);
264264
}

0 commit comments

Comments
 (0)