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

Added missing Corsair channel device types

This commit is contained in:
Darth Affe 2020-12-24 23:30:53 +01:00
parent df52f6703c
commit 3e6068b090
2 changed files with 14 additions and 4 deletions

View File

@ -61,12 +61,14 @@ namespace RGB.NET.Devices.Corsair
case CorsairChannelDeviceType.FanML:
case CorsairChannelDeviceType.DAP:
case CorsairChannelDeviceType.FanQL:
case CorsairChannelDeviceType.FanSPPRO:
return RGBDeviceType.Fan;
case CorsairChannelDeviceType.Strip:
return RGBDeviceType.LedStripe;
case CorsairChannelDeviceType.Pump:
case CorsairChannelDeviceType.WaterBlock:
return RGBDeviceType.Cooler;
default:
@ -93,6 +95,12 @@ namespace RGB.NET.Devices.Corsair
case CorsairChannelDeviceType.FanML:
return "ML Fan";
case CorsairChannelDeviceType.FanQL:
return "QL Fan";
case CorsairChannelDeviceType.FanSPPRO:
return "SP-PRO Fan";
case CorsairChannelDeviceType.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 ((info.Model == "LS100 Starter Kit") && (channelDeviceInfo.deviceLedCount == 138))
@ -111,12 +119,12 @@ namespace RGB.NET.Devices.Corsair
case CorsairChannelDeviceType.DAP:
return "DAP Fan";
case CorsairChannelDeviceType.WaterBlock:
return "Water Block";
case CorsairChannelDeviceType.Pump:
return "AIO Pump";
case CorsairChannelDeviceType.FanQL:
return "QL Fan";
default:
throw new ArgumentOutOfRangeException(nameof(channelDeviceInfo.type), channelDeviceInfo.type, null);
}

View File

@ -19,6 +19,8 @@ namespace RGB.NET.Devices.Corsair
Strip = 5,
DAP = 6,
Pump = 7,
FanQL = 8
FanQL = 8,
WaterBlock = 9,
FanSPPRO = 10
};
}