mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Cleanup
This commit is contained in:
@@ -31,7 +31,6 @@ namespace GHelper.Mode
|
||||
private void ReapplyTimer_Elapsed(object? sender, System.Timers.ElapsedEventArgs e)
|
||||
{
|
||||
SetCPUTemp(AppConfig.GetMode("cpu_temp"));
|
||||
SetSkinTemp(AppConfig.GetMode("skin_temp"));
|
||||
SetRyzenPower();
|
||||
}
|
||||
|
||||
@@ -410,15 +409,6 @@ namespace GHelper.Mode
|
||||
}
|
||||
}
|
||||
|
||||
public void SetSkinTemp(int? skinTemp, bool init = false)
|
||||
{
|
||||
if (skinTemp >= RyzenControl.MinSkin && skinTemp < RyzenControl.MaxSkin)
|
||||
{
|
||||
var restultAPU = SendCommand.set_apu_skin_temp_limit((uint)skinTemp);
|
||||
if (init) Logger.WriteLine($"APU Skin Temp: {skinTemp} {restultAPU}");
|
||||
}
|
||||
}
|
||||
|
||||
public void SetUV(int cpuUV)
|
||||
{
|
||||
if (!RyzenControl.IsSupportedUV()) return;
|
||||
@@ -459,7 +449,6 @@ namespace GHelper.Mode
|
||||
SetUV(AppConfig.GetMode("cpu_uv", 0));
|
||||
SetUViGPU(AppConfig.GetMode("igpu_uv", 0));
|
||||
SetCPUTemp(AppConfig.GetMode("cpu_temp"), true);
|
||||
SetSkinTemp(AppConfig.GetMode("skin_temp"), true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user