mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08: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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ledPosition.LedId == CorsairLedId.Invalid) continue;
|
||||||
|
|
||||||
Mapping.Add(ledId, ledPosition.LedId);
|
Mapping.Add(ledId, ledPosition.LedId);
|
||||||
|
|
||||||
Rectangle rectangle = ledPosition.ToRectangle();
|
Rectangle rectangle = ledPosition.ToRectangle();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user