mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
simplify LX Fan logic in CorsairDeviceProvider
This commit is contained in:
parent
1deb1b9f2f
commit
01bad00d8a
@ -318,11 +318,8 @@ public sealed class CorsairDeviceProvider : AbstractRGBDeviceProvider
|
|||||||
|
|
||||||
//Workaround to support LX Fans because they have an invalid ChannelDeviceType
|
//Workaround to support LX Fans because they have an invalid ChannelDeviceType
|
||||||
if ((device.model == "iCUE LINK System Hub") && (ledCount == 18))
|
if ((device.model == "iCUE LINK System Hub") && (ledCount == 18))
|
||||||
{
|
|
||||||
yield return new CorsairFanRGBDevice(new CorsairFanRGBDeviceInfo(device, ledCount, offset, "LX Fan"), updateQueue);
|
yield return new CorsairFanRGBDevice(new CorsairFanRGBDeviceInfo(device, ledCount, offset, "LX Fan"), updateQueue);
|
||||||
break;
|
else
|
||||||
}
|
|
||||||
|
|
||||||
Throw(new RGBDeviceException("Unknown Device-Type"));
|
Throw(new RGBDeviceException("Unknown Device-Type"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user