1
0
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:
DarthAffe 2020-12-25 19:33:00 +01:00 committed by GitHub
commit 5243cdc6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 "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
};
}