Fan Calibration

This commit is contained in:
Serge
2023-09-08 19:32:37 +02:00
parent 0e3efcf547
commit e6a78fc8f7
2 changed files with 10 additions and 9 deletions

6
app/Fans.Designer.cs generated
View File

@@ -430,11 +430,11 @@ namespace GHelper
buttonCalibrate.BorderColor = Color.Transparent; buttonCalibrate.BorderColor = Color.Transparent;
buttonCalibrate.BorderRadius = 2; buttonCalibrate.BorderRadius = 2;
buttonCalibrate.FlatStyle = FlatStyle.Flat; buttonCalibrate.FlatStyle = FlatStyle.Flat;
buttonCalibrate.Location = new Point(239, 42); buttonCalibrate.Location = new Point(239, 40);
buttonCalibrate.Margin = new Padding(4, 2, 4, 2); buttonCalibrate.Margin = new Padding(4, 2, 4, 2);
buttonCalibrate.Name = "buttonCalibrate"; buttonCalibrate.Name = "buttonCalibrate";
buttonCalibrate.Secondary = true; buttonCalibrate.Secondary = true;
buttonCalibrate.Size = new Size(135, 50); buttonCalibrate.Size = new Size(141, 50);
buttonCalibrate.TabIndex = 43; buttonCalibrate.TabIndex = 43;
buttonCalibrate.Text = "Calibrate"; buttonCalibrate.Text = "Calibrate";
buttonCalibrate.UseVisualStyleBackColor = false; buttonCalibrate.UseVisualStyleBackColor = false;
@@ -443,7 +443,7 @@ namespace GHelper
// //
labelFansResult.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; labelFansResult.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
labelFansResult.ForeColor = Color.Red; labelFansResult.ForeColor = Color.Red;
labelFansResult.Location = new Point(18, 6); labelFansResult.Location = new Point(18, 2);
labelFansResult.Margin = new Padding(4, 0, 4, 0); labelFansResult.Margin = new Padding(4, 0, 4, 0);
labelFansResult.Name = "labelFansResult"; labelFansResult.Name = "labelFansResult";
labelFansResult.Size = new Size(771, 32); labelFansResult.Size = new Size(771, 32);

View File

@@ -715,12 +715,12 @@ namespace GHelper
chart.ChartAreas[0].AxisY.CustomLabels.Clear(); chart.ChartAreas[0].AxisY.CustomLabels.Clear();
for (int i = 0; i <= fansMax - 10; i += 10) for (int i = 0; i <= fansMax; i += 10)
{ {
chart.ChartAreas[0].AxisY.CustomLabels.Add(i - 2, i + 2, ChartYLabel(i, device)); chart.ChartAreas[0].AxisY.CustomLabels.Add(i - 2, i + 2, ChartYLabel(i, device));
} }
chart.ChartAreas[0].AxisY.CustomLabels.Add(fansMax - 2, fansMax + 2, Properties.Strings.RPM); //chart.ChartAreas[0].AxisY.CustomLabels.Add(fansMax -2, fansMax + 2, Properties.Strings.RPM);
chart.ChartAreas[0].AxisY.Interval = 10; chart.ChartAreas[0].AxisY.Interval = 10;
} }
@@ -728,20 +728,21 @@ namespace GHelper
{ {
string title = ""; string title = "";
string scale = ", RPM/°C";
switch (device) switch (device)
{ {
case AsusFan.CPU: case AsusFan.CPU:
title = Properties.Strings.FanProfileCPU; title = Properties.Strings.FanProfileCPU + scale;
break; break;
case AsusFan.GPU: case AsusFan.GPU:
title = Properties.Strings.FanProfileGPU; title = Properties.Strings.FanProfileGPU + scale;
break; break;
case AsusFan.Mid: case AsusFan.Mid:
title = Properties.Strings.FanProfileMid; title = Properties.Strings.FanProfileMid + scale;
break; break;
case AsusFan.XGM: case AsusFan.XGM:
title = "XG Mobile"; title = "XG Mobile" + scale;
break; break;
} }