1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 09:38:31 +00:00

simplify LX Fan logic in CorsairDeviceProvider

This commit is contained in:
jonilala796 2025-02-08 21:52:28 +01:00
parent 1deb1b9f2f
commit 01bad00d8a

View File

@ -318,12 +318,9 @@ 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;
} }