mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +00:00
Throw on LED control enable fail
Added devices indices for MM830, CK530 and MK850
This commit is contained in:
1 parent
95589d6f2b
commit
9175887327
2 files changed
+14
-1
No files matched your search
@@ -132,7 +132,8 @@ namespace RGB.NET.Devices.CoolerMaster
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
_CoolerMasterSDK.EnableLedControl(true, index);
|
if (!_CoolerMasterSDK.EnableLedControl(true, index))
|
||||||
|
throw new RGBDeviceException("Failed to enable LED control for device " + index);
|
||||||
|
|
||||||
device.Initialize(UpdateTrigger);
|
device.Initialize(UpdateTrigger);
|
||||||
devices.Add(device);
|
devices.Add(device);
|
||||||
|
|||||||
@@ -69,6 +69,18 @@ namespace RGB.NET.Devices.CoolerMaster
|
|||||||
[DeviceType(RGBDeviceType.Keyboard)]
|
[DeviceType(RGBDeviceType.Keyboard)]
|
||||||
CK551 = 13,
|
CK551 = 13,
|
||||||
|
|
||||||
|
[Description("MM830")]
|
||||||
|
[DeviceType(RGBDeviceType.Mouse)]
|
||||||
|
MM830 = 14,
|
||||||
|
|
||||||
|
[Description("CK530")]
|
||||||
|
[DeviceType(RGBDeviceType.Keyboard)]
|
||||||
|
CK530 = 15,
|
||||||
|
|
||||||
|
[Description("MK850")]
|
||||||
|
[DeviceType(RGBDeviceType.Keyboard)]
|
||||||
|
MK850 = 16,
|
||||||
|
|
||||||
[DeviceType(RGBDeviceType.None)]
|
[DeviceType(RGBDeviceType.None)]
|
||||||
Default = 0xFFFF
|
Default = 0xFFFF
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user