Skip to content

Commit

Permalink
Merge pull request #4 from Darren80/Dev
Browse files Browse the repository at this point in the history
tweaks.
  • Loading branch information
Darren80 authored May 23, 2024
2 parents cb83528 + 14d1e5e commit 3ffb071
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AsusFanControlGUI/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions AsusFanControlGUI/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private void radioButton1_CheckedChanged(object sender, EventArgs e)
Properties.Settings.Default.fanControlState = "Off";
Properties.Settings.Default.Save();

notifyIcon1.Text = $"AsusFanControlEnhanced - Off";
setFanSpeed(0, null);
}
}
Expand Down Expand Up @@ -213,6 +214,9 @@ private void trackBarSetFanSpeed()
label5.Text = trackBarFanSpeedValue.ToString() + "% Fan";
Console.WriteLine($"Setting speed to: {(int)trackBarFanSpeedValue}");
label3.Text = $"Setting speed to: {(int)trackBarFanSpeedValue}%";// (Stamp: {rnd.Next(1000)})";
notifyIcon1.Text = $"AsusFanControlEnhanced - Fan Speed: {(int)trackBarFanSpeedValue}%";
if ((int)trackBarFanSpeedValue == 0)
notifyIcon1.Text = $"AsusFanControlEnhanced - Off";

setFanSpeed((int)trackBarFanSpeedValue, fanControl.Checked);
}
Expand Down Expand Up @@ -502,6 +506,7 @@ double CalculateFanSpeed(double currentTemp)
// Temperature is outside the range, yield control to the system.
label3.Text = "Control yeilded to system when temprature is outside range.";
Console.WriteLine("Temperature is outside the range, yield control to the system.");
notifyIcon1.Text = $"AsusFanControlEnhanced - Off";
return 0;
}else
{
Expand Down Expand Up @@ -539,6 +544,7 @@ private async void runFanCurve()
if (fanSpeed != 0)
{
label3.Text = $"Set fan speed to {(int)fanSpeed}%, current temp: {currentTemp}°C";// (Stamp: {rnd.Next(1000)})";
notifyIcon1.Text = $"AsusFanControlEnhanced - Current Temp: {(int)currentTemp}°C - Fan Speed: {(int)fanSpeed}%";
}
lastTemperature = (int)currentTemp;

Expand Down

0 comments on commit 3ffb071

Please sign in to comment.