Removed Undervolting sliders for not supported models

This commit is contained in:
Serge
2023-07-16 17:04:15 +02:00
parent e593fa3a76
commit a31303624a
3 changed files with 22 additions and 2 deletions

View File

@@ -366,6 +366,8 @@ namespace GHelper.Mode
public void SetUV(int cpuUV)
{
if (!RyzenControl.IsSupportedUV()) return;
if (cpuUV >= RyzenControl.MinCPUUV && cpuUV <= RyzenControl.MaxCPUUV)
{
var uvResult = SendCommand.set_coall(cpuUV);
@@ -376,6 +378,8 @@ namespace GHelper.Mode
public void SetUViGPU(int igpuUV)
{
if (!RyzenControl.IsSupportedUViGPU()) return;
if (igpuUV >= RyzenControl.MinIGPUUV && igpuUV <= RyzenControl.MaxIGPUUV)
{
var iGPUResult = SendCommand.set_cogfx(igpuUV);