mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
Merge pull request #348 from DarthAffe/SDK/Corsair
Fixed an exception when multiple invalid leds are present in custom c…
This commit is contained in:
commit
3d9706ad0e
@ -53,6 +53,8 @@ public class CorsairCustomRGBDevice : CorsairRGBDevice<CorsairCustomRGBDeviceInf
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ledPosition.LedId == CorsairLedId.Invalid) continue;
|
||||
|
||||
Mapping.Add(ledId, ledPosition.LedId);
|
||||
|
||||
Rectangle rectangle = ledPosition.ToRectangle();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user