mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 21:16:24 +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:
1 file changed
+2
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user