Backlight control fix

This commit is contained in:
Serge
2023-05-27 22:44:54 +02:00
parent 47d96aca61
commit 1cda822820
3 changed files with 15 additions and 38 deletions

View File

@@ -155,6 +155,7 @@ public static class HardwareControl
if (_gpuControl.IsValid)
{
GpuControl = _gpuControl;
Logger.WriteLine(GpuControl.FullName);
return;
}
@@ -164,11 +165,14 @@ public static class HardwareControl
if (_gpuControl.IsValid)
{
GpuControl = _gpuControl;
Logger.WriteLine(GpuControl.FullName);
return;
}
_gpuControl.Dispose();
GpuControl = null;
}
catch (Exception ex)
{