Exception handling

This commit is contained in:
Serge
2023-06-17 12:32:58 +02:00
parent 0b030da41b
commit d3de136dd3

View File

@@ -1146,6 +1146,8 @@ namespace GHelper
int cpuUV = AppConfig.GetMode("cpu_uv", 0); int cpuUV = AppConfig.GetMode("cpu_uv", 0);
int igpuUV = AppConfig.GetMode("igpu_uv", 0); int igpuUV = AppConfig.GetMode("igpu_uv", 0);
try
{
if (cpuUV >= -40 && cpuUV <= 0) if (cpuUV >= -40 && cpuUV <= 0)
{ {
SendCommand.set_coall(cpuUV); SendCommand.set_coall(cpuUV);
@@ -1155,6 +1157,10 @@ namespace GHelper
{ {
SendCommand.set_cogfx(igpuUV); SendCommand.set_cogfx(igpuUV);
} }
} catch (Exception ex)
{
Logger.WriteLine("UV Error: " + ex.ToString());
}
} }