mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Merge pull request #162 from DarthAffe/SDK/Corsair
Added missing Corsair channel device types
This commit is contained in:
commit
5243cdc6ee
@ -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 "Pump";
|
||||
|
||||
case CorsairChannelDeviceType.FanQL:
|
||||
return "QL Fan";
|
||||
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(channelDeviceInfo.type), channelDeviceInfo.type, null);
|
||||
}
|
||||
|
||||
@ -19,6 +19,8 @@ namespace RGB.NET.Devices.Corsair
|
||||
Strip = 5,
|
||||
DAP = 6,
|
||||
Pump = 7,
|
||||
FanQL = 8
|
||||
FanQL = 8,
|
||||
WaterBlock = 9,
|
||||
FanSPPRO = 10
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user