1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 01:58:30 +00:00

Added a workaround for some weird issue with the x86 razer-sdk

This commit is contained in:
Darth Affe 2018-02-08 20:04:26 +01:00
parent 3aa1fd2051
commit 7b5895d2a4

View File

@ -99,7 +99,8 @@ namespace RGB.NET.Devices.Razer
_RazerSDK.Reload();
RazerError error;
if ((error = _RazerSDK.Init()) != RazerError.Success)
if (((error = _RazerSDK.Init()) != RazerError.Success)
&& Enum.IsDefined(typeof(RazerError), error)) //HACK DarthAffe 08.02.2018: The x86-SDK seems to have a problem here ...
ThrowRazerError(error);
IList<IRGBDevice> devices = new List<IRGBDevice>();