Skip to content

Commit

Permalink
v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lich426 committed May 2, 2020
1 parent 3d829b1 commit 727dd94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions External/NZXTSharp/KrakenX/KrakenX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public class KrakenX : INZXTDevice

public int getMinFanSpeed()
{
return 0;
return 25;
}

public int getMaxFanSpeed()
Expand Down Expand Up @@ -189,15 +189,11 @@ public KrakenX(NZXTDeviceType type)
case NZXTDeviceType.KrakenX:
mID = 0x170e;
mSendDelayTime = 5000;
mPumpSpeed = 50;
mFanPercent = 25;
break;

case NZXTDeviceType.KrakenX3:
mID = 0x2007;
mSendDelayTime = 10000;
mPumpSpeed = 20;
mFanPercent = 25;
break;
default:
throw new Exception();
Expand Down Expand Up @@ -400,8 +396,8 @@ public int GetPumpSpeed()
public void SetPumpSpeed(int speed)
{
Monitor.Enter(mLock);
if (speed > 100) speed = 100;
else if (speed < 50) speed = 50;
if (speed > this.getMaxPumpSpeed()) speed = this.getMaxPumpSpeed();
else if (speed < this.getMinPumpSpeed()) speed = this.getMinPumpSpeed();
mPumpSpeed = speed;
Monitor.Exit(mLock);
}
Expand All @@ -425,8 +421,8 @@ public int GetFanSpeed()
public void SetFanSpeed(int percent)
{
Monitor.Enter(mLock);
if (percent > 100) percent = 100;
else if (percent < 25) percent = 25;
if (percent > this.getMaxFanSpeed()) percent = this.getMaxFanSpeed();
else if (percent < this.getMinFanSpeed()) percent = this.getMinFanSpeed();
mFanPercent = percent;
Monitor.Exit(mLock);
}
Expand Down
Binary file modified Portable/FanControl_v1.0.7.zip
Binary file not shown.

0 comments on commit 727dd94

Please sign in to comment.