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

Compare commits

..

No commits in common. "7fabc71b286b38dd90287a9ac000cc4f25bd9d09" and "f8e4cc6b497efe2066f82bf643058f8052fb621e" have entirely different histories.

View File

@ -273,12 +273,7 @@ public sealed class CorsairDeviceProvider : AbstractRGBDeviceProvider
break;
case CorsairChannelDeviceType.EightLedSeriesFan:
string fanModelName = "8-Led-Series Fan";
if (device.model == "iCUE LINK System Hub")
fanModelName = "RX Fan";
yield return new CorsairFanRGBDevice(new CorsairFanRGBDeviceInfo(device, ledCount, offset, fanModelName), updateQueue);
yield return new CorsairFanRGBDevice(new CorsairFanRGBDeviceInfo(device, ledCount, offset, "8-Led-Series Fan Fan"), updateQueue);
break;
case CorsairChannelDeviceType.DAP:
@ -294,20 +289,20 @@ public sealed class CorsairDeviceProvider : AbstractRGBDeviceProvider
break;
case CorsairChannelDeviceType.Strip:
string stripModelName = "LED Strip";
string modelName = "LED Strip";
// LS100 Led Strips are reported as one big strip if configured in monitor mode in iCUE, 138 LEDs for dual monitor, 84 for single
if ((device.model == "LS100 Starter Kit") && (ledCount == 138))
stripModelName = "LS100 LED Strip (dual monitor)";
modelName = "LS100 LED Strip (dual monitor)";
else if ((device.model == "LS100 Starter Kit") && (ledCount == 84))
stripModelName = "LS100 LED Strip (single monitor)";
modelName = "LS100 LED Strip (single monitor)";
// Any other value means an "External LED Strip" in iCUE, these are reported per-strip, 15 for short strips, 27 for long
else if ((device.model == "LS100 Starter Kit") && (ledCount == 15))
stripModelName = "LS100 LED Strip (short)";
modelName = "LS100 LED Strip (short)";
else if ((device.model == "LS100 Starter Kit") && (ledCount == 27))
stripModelName = "LS100 LED Strip (long)";
modelName = "LS100 LED Strip (long)";
yield return new CorsairLedStripRGBDevice(new CorsairLedStripRGBDeviceInfo(device, ledCount, offset, stripModelName), updateQueue);
yield return new CorsairLedStripRGBDevice(new CorsairLedStripRGBDeviceInfo(device, ledCount, offset, modelName), updateQueue);
break;
case CorsairChannelDeviceType.DRAM:
@ -315,12 +310,7 @@ public sealed class CorsairDeviceProvider : AbstractRGBDeviceProvider
break;
default:
//Workaround to support LX Fans because they have an invalid ChannelDeviceType
if ((device.model == "iCUE LINK System Hub") && (ledCount == 18))
yield return new CorsairFanRGBDevice(new CorsairFanRGBDeviceInfo(device, ledCount, offset, "LX Fan"), updateQueue);
else
Throw(new RGBDeviceException("Unknown Device-Type"));
Throw(new RGBDeviceException("Unknown Device-Type"));
break;
}